Adding upstream version 4.02+dfsg.
[syslinux-debian/hramrach.git] / dos / strtoul.c
blob3be94307a7f610b5fafe47cfb1e36f40726abdba
1 /*
2 * strtoul.c
4 * strtoul() function
5 */
7 #include <stddef.h>
8 #include <inttypes.h>
10 extern uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n);
12 unsigned long strtoul(const char *nptr, char **endptr, int base)
14 return (unsigned long) strntoumax(nptr, endptr, base, ~(size_t) 0);