summaryrefslogtreecommitdiff
path: root/com32/lib/strtox.c
blob: 7c228b6fa4fdd80d0615b89899e52aa37986d0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * strtox.c
 *
 * strto...() functions, by macro definition
 */

#include <stddef.h>
#include <inttypes.h>

TYPE NAME (const char *nptr, char **endptr, int base)
{
  return (TYPE) strntoumax(nptr, endptr, base, ~(size_t)0);
}