strtol10.h
Go to the documentation of this file.00001
00040 #ifndef MWARE_STRTOL10_H
00041 #define MWARE_STRTOL10_H
00042
00043 #include <cfg/compiler.h>
00044
00045 bool strtoul10(const char *first, const char *last, unsigned long *val);
00046 bool strtol10(const char *first, const char *last, long *val);
00047
00051 INLINE long atol(const char *str)
00052 {
00053 long val;
00054 strtol10(str, NULL, &val);
00055 return val;
00056 }
00057
00061 INLINE int atoi(const char *str)
00062 {
00063 return (int)atol(str);
00064 }
00065
00066 #endif