diff options
Diffstat (limited to 'usr/klibc/strtox.c')
-rw-r--r-- | usr/klibc/strtox.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/klibc/strtox.c b/usr/klibc/strtox.c new file mode 100644 index 0000000..c22e7c7 --- /dev/null +++ b/usr/klibc/strtox.c @@ -0,0 +1,14 @@ +/* + * strtox.c + * + * strto...() functions, by macro definition + */ + +#include <stddef.h> +#include <stdlib.h> +#include <inttypes.h> + +TYPE NAME(const char *nptr, char **endptr, int base) +{ + return (TYPE) strntoumax(nptr, endptr, base, ~(size_t) 0); +} |