summaryrefslogtreecommitdiff
path: root/src/libc/string/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc/string/string.c')
-rw-r--r--src/libc/string/string.c6
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);