4 * Copyright 2005 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See README.devlib for information.
8 * \brief Poor man's hex arrays (implementation).
11 * \author Bernardo Innocenti <bernie@develer.com>
16 *#* Revision 1.1 2005/03/15 00:06:30 bernie
17 *#* Simpler, smaller, faster.
21 #ifndef MWARE_STRTOL10_H
22 #define MWARE_STRTOL10_H
24 #include <compiler.h> /* bool */
26 bool strtoul10(const char *first, const char *last, unsigned long *val);
27 bool strtol10(const char *first, const char *last, long *val);
30 * Replacement for standard library function atol().
32 INLINE long atol(const char *str)
35 strtol10(str, NULL, &val);
40 * Replacement for standard library function atoi().
42 INLINE int atoi(const char *str)
44 return (int)atol(str);
47 #endif /* MWARE_STRTOL10_H */