BeRTOS
|
00001 00039 #ifndef MWARE_STRTOL10_H 00040 #define MWARE_STRTOL10_H 00041 00042 #include <cfg/compiler.h> /* bool */ 00043 00044 bool strtoul10(const char *first, const char *last, unsigned long *val); 00045 bool strtol10(const char *first, const char *last, long *val); 00046 00050 INLINE long atol(const char *str) 00051 { 00052 long val; 00053 strtol10(str, NULL, &val); 00054 return val; 00055 } 00056 00060 INLINE int atoi(const char *str) 00061 { 00062 return (int)atol(str); 00063 } 00064 00065 #endif /* MWARE_STRTOL10_H */