summaryrefslogtreecommitdiffstats
path: root/usr/klibc/strntoimax.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/klibc/strntoimax.c')
-rw-r--r--usr/klibc/strntoimax.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/klibc/strntoimax.c b/usr/klibc/strntoimax.c
new file mode 100644
index 0000000..179d9e5
--- /dev/null
+++ b/usr/klibc/strntoimax.c
@@ -0,0 +1,13 @@
+/*
+ * strntoimax.c
+ *
+ * strntoimax()
+ */
+
+#include <stddef.h>
+#include <inttypes.h>
+
+intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n)
+{
+ return (intmax_t) strntoumax(nptr, endptr, base, n);
+}