source: bootcd/isolinux/syslinux-6.03/dos/strtoul.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 313 bytes
RevLine 
[e16e8f2]1/*
2 * strtoul.c
3 *
4 * strtoul() function
5 */
6
7#include <stddef.h>
8#include <inttypes.h>
9
10extern uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n);
11
12unsigned long strtoul(const char *nptr, char **endptr, int base)
13{
14    return (unsigned long) strntoumax(nptr, endptr, base, ~(size_t) 0);
15}
Note: See TracBrowser for help on using the repository browser.