aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/nolibc/nolibc.h
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2022-02-07 17:23:21 +0100
committerPaul E. McKenney <paulmck@kernel.org>2022-04-20 17:05:43 -0700
commit62a2af077493df4ebea22df4de8df4aea3c882cc (patch)
tree0c1aca5df502bb85cf5be0d1107e560402de9b74 /tools/include/nolibc/nolibc.h
parenttools/nolibc/string: split the string functions into string.h (diff)
downloadlinux-stable-62a2af077493df4ebea22df4de8df4aea3c882cc.tar.xz
linux-stable-62a2af077493df4ebea22df4de8df4aea3c882cc.zip
tools/nolibc/ctype: split the is* functions to ctype.h
In fact there's only isdigit() for now. More should definitely be added. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/include/nolibc/nolibc.h')
-rw-r--r--tools/include/nolibc/nolibc.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h
index b06bd5cb5651..c96c6cb7f3ae 100644
--- a/tools/include/nolibc/nolibc.h
+++ b/tools/include/nolibc/nolibc.h
@@ -87,6 +87,7 @@
#include "arch.h"
#include "types.h"
#include "sys.h"
+#include "ctype.h"
#include "stdlib.h"
#include "string.h"
@@ -94,12 +95,6 @@
#define NOLIBC
static __attribute__((unused))
-int isdigit(int c)
-{
- return (unsigned int)(c - '0') <= 9;
-}
-
-static __attribute__((unused))
const char *ltoa(long in)
{
/* large enough for -9223372036854775808 */