summaryrefslogtreecommitdiffstats
path: root/usr/klibc/strtox.c
blob: c22e7c7cf08535fe0e6bee08fdef0287ecdcf613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}