/** * \file * * * \brief Poor man's hex arrays (implementation). * * \author Bernie Innocenti */ #ifndef MWARE_STRTOL10_H #define MWARE_STRTOL10_H #include /* bool */ bool strtoul10(const char *first, const char *last, unsigned long *val); bool strtol10(const char *first, const char *last, long *val); /** * Replacement for standard library function atol(). */ INLINE long atol(const char *str) { long val; strtol10(str, NULL, &val); return val; } /** * Replacement for standard library function atoi(). */ INLINE int atoi(const char *str) { return (int)atol(str); } #endif /* MWARE_STRTOL10_H */