diff options
Diffstat (limited to 'memdump/mystuff.h')
-rw-r--r-- | memdump/mystuff.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/memdump/mystuff.h b/memdump/mystuff.h new file mode 100644 index 00000000..7c5ac6f5 --- /dev/null +++ b/memdump/mystuff.h @@ -0,0 +1,24 @@ +#ifndef MYSTUFF_H +#define MYSTUFF_H + +#include <stdlib.h> + +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +typedef signed long long int64_t; +typedef unsigned long long uint64_t; + +unsigned int skip_atou(const char **s); +unsigned long strtoul(const char *, char **, int); + +static inline int +isdigit(int ch) +{ + return (ch >= '0') && (ch <= '9'); +} + +#endif /* MYSTUFF_H */ |