Skip to content

Commit e99e340

Browse files
author
David Sommerseth
committed
Removed no longer needed function - is_int()
This function did not work as expected and due to the rewrite of xmlpythonizer, this function is not longer needed.
1 parent 3149fdc commit e99e340

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

src/util.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,3 @@ int write_dump(size_t base, size_t len, const void *data, const char *dumpfile,
190190
return -1;
191191
}
192192

193-
long is_int(const char *s)
194-
{
195-
long i = strtol(s, (char **)NULL, 10);
196-
char _s[3];
197-
snprintf(_s, 3, "%ld", i);
198-
return strcmp(s, _s)==0 ? i : -1;
199-
}
200-
201-

src/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@
2828
int checksum(const u8 * buf, size_t len);
2929
void *mem_chunk(size_t base, size_t len, const char *devmem);
3030
int write_dump(size_t base, size_t len, const void *data, const char *dumpfile, int add);
31-
long is_int(const char *s);

0 commit comments

Comments
 (0)