diff options
author | dzwdz | 2023-08-27 02:06:32 +0200 |
---|---|---|
committer | dzwdz | 2023-08-27 02:06:32 +0200 |
commit | e43939bcc6123e02314aa403eef94d5ace441f7f (patch) | |
tree | ac0cea10e8708ae1a6a7a400257c4bc59175a91f /src/libc/string/string.c | |
parent | 1f938c20b4a82ca1267ab9a1ec0922878a21ca6b (diff) |
ports: qbe, cproc :^)
Diffstat (limited to 'src/libc/string/string.c')
-rw-r--r-- | src/libc/string/string.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libc/string/string.c b/src/libc/string/string.c index 014be4a..748b0b5 100644 --- a/src/libc/string/string.c +++ b/src/libc/string/string.c @@ -124,6 +124,12 @@ size_t strnlen(const char *s, size_t len) { return len; } +char *strsignal(int sig) { + static char buf[32]; + snprintf(buf, sizeof(buf), "signal %d", sig); + return buf; +} + /* strings.h */ int strcasecmp(const char *s1, const char *s2) { return strncasecmp(s1, s2, ~0); |