1 /* 2 * atox.c 3 * 4 * atoi(), atol(), atoll() 5 */ 6 7 #include <inttypes.h> 8 #include <stdlib.h> 9 #include <stdio.h> 10 NAME(const char * nptr)11 TYPE NAME(const char *nptr) 12 { 13 return (TYPE) strntoumax(nptr, (char **)NULL, 10, ~(size_t) 0); 14 } 15