summaryrefslogtreecommitdiff
path: root/src/user/lib/include/string.h
diff options
context:
space:
mode:
authordzwdz2023-06-09 17:22:31 +0200
committerdzwdz2023-06-09 17:22:31 +0200
commit112eafe13c3628cad6e692179c064dbbc3be2d8b (patch)
tree04bdb3df2d2e6fd7042dbefa117ff0e5a5447476 /src/user/lib/include/string.h
parent668655053911072741883fd258c23e9d0668a853 (diff)
ports/dash: stub out everything needed for dash to compile
Diffstat (limited to 'src/user/lib/include/string.h')
-rw-r--r--src/user/lib/include/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h
index 343664d..78bed9b 100644
--- a/src/user/lib/include/string.h
+++ b/src/user/lib/include/string.h
@@ -1,5 +1,6 @@
#pragma once
#include <shared/mem.h>
+#include <strings.h> /* work around bad include in dash */
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
@@ -18,6 +19,7 @@ char *strstr(const char *s1, const char *s2);
char *strcpy(char *restrict s1, const char *restrict s2);
char *strncpy(char *restrict s1, const char *restrict s2, size_t n);
+char *stpncpy(char *restrict dst, const char *restrict src, size_t n);
char *strdup(const char *s);
char *strerror(int errnum);