chiark / gitweb /
[PATCH] fix klibc's broken strlcpy/strlcat
[elogind.git] / klibc / klibc / strntoimax.c
1 /*
2  * strntoimax.c
3  *
4  * strntoimax()
5  */
6
7 #include <stddef.h>
8 #include <inttypes.h>
9
10 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n)
11 {
12   return (intmax_t) strntoumax(nptr, endptr, base, n);
13 }