summaryrefslogtreecommitdiff
path: root/src/sys/include/lib/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/include/lib/string.h')
-rw-r--r--src/sys/include/lib/string.h7
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 */