X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Fstrtol10.h;h=4dfe7a479cb700e533f55ac5660583d3276df758;hb=HEAD;hp=ab44f5c7906f860963b5bdb3ae11432626b35fa1;hpb=af9c555446161016fdd76c1cdff96ce76bb6cba2;p=bertos.git diff --git a/mware/strtol10.h b/mware/strtol10.h deleted file mode 100755 index ab44f5c7..00000000 --- a/mware/strtol10.h +++ /dev/null @@ -1,50 +0,0 @@ -/*! - * \file - * - * - * \brief Poor man's hex arrays (implementation). - * - * \version $Id$ - * \author Bernardo Innocenti - */ - -/*#* - *#* $Log$ - *#* Revision 1.2 2005/04/11 19:10:28 bernie - *#* Include top-level headers from cfg/ subdir. - *#* - *#* Revision 1.1 2005/03/15 00:06:30 bernie - *#* Simpler, smaller, faster. - *#* - *#*/ - -#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 */