diff options
author | dzwdz | 2023-06-09 17:22:31 +0200 |
---|---|---|
committer | dzwdz | 2023-06-09 17:22:31 +0200 |
commit | 112eafe13c3628cad6e692179c064dbbc3be2d8b (patch) | |
tree | 04bdb3df2d2e6fd7042dbefa117ff0e5a5447476 /src/user/lib/include/string.h | |
parent | 668655053911072741883fd258c23e9d0668a853 (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.h | 2 |
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); |