summaryrefslogtreecommitdiff
path: root/com32/lib/atox.c
blob: e9917cd638bd4cdee5c854a74efcf1419083cb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * atox.c
 *
 * atoi(), atol(), atoll()
 */

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>

TYPE NAME(const char *nptr)
{
    return (TYPE) strntoumax(nptr, (char **)NULL, 10, ~(size_t) 0);
}