From 7b3f6a5a507a59b613998ef9ad2f14252d993d42 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Sat, 28 Feb 2026 12:48:48 +0100 Subject: add strnlen and isdigit helpers This is missing and will come in handy for path parsing. Signed-off-by: Carlos Maiolino --- src/include/toxic/string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/toxic') diff --git a/src/include/toxic/string.h b/src/include/toxic/string.h index 69d8bd2..3cb4a30 100644 --- a/src/include/toxic/string.h +++ b/src/include/toxic/string.h @@ -3,7 +3,11 @@ #include +#define NULL ((void *)0) + +bool isdigit(char c); size_t strlen(const char *s); +size_t strnlen(const char *s, size_t maxlen); char *strcpy(char *restrict dst, const char *restrict src); void *memset(void *s, int c, size_t n); -- cgit v1.2.3