diff options
Diffstat (limited to 'src/sys/include/lib')
-rw-r--r-- | src/sys/include/lib/string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/include/lib/string.h b/src/sys/include/lib/string.h index 3da8b5f..e7c9905 100644 --- a/src/sys/include/lib/string.h +++ b/src/sys/include/lib/string.h @@ -68,6 +68,13 @@ int snprintf(char *s, size_t size, const char *fmt, ...); */ char *itoa(int64_t value, char *buf, int base); +/* + * Duplicate a string onto heap + * + * @s: String to duplicate + */ +char *strdup(const char *s); + __END_DECLS #endif /* !_LIB_STRING_H */ |