chiark / gitweb /
[PATCH] klibc specific tweaks
[elogind.git] / klibc / klibc / atox.c
1 /*
2  * atox.c
3  *
4  * atoi(), atol(), atoll()
5  */
6
7 #include <inttypes.h>
8 #include <stdlib.h>
9 #include <stdio.h>
10
11 TYPE NAME (const char *nptr)
12 {
13   return (TYPE) strntoumax(nptr, (char **)NULL, 10, ~(size_t)0);
14 }