summaryrefslogtreecommitdiff
path: root/include/ouroboros/utils.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-02 14:06:30 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-02 14:06:30 +0200
commit8e1e865a25ec4e88f64b149764c239e286e42c49 (patch)
tree5c48ba6355e8465cccacdaf6b79c3922e0cbd332 /include/ouroboros/utils.h
parent02972a88ac293356bcb4b03c8c6cd79735f7288a (diff)
downloadouroboros-8e1e865a25ec4e88f64b149764c239e286e42c49.tar.gz
ouroboros-8e1e865a25ec4e88f64b149764c239e286e42c49.zip
lib: Move strdup to utils
This moves strdup to utils to make it globally available.
Diffstat (limited to 'include/ouroboros/utils.h')
-rw-r--r--include/ouroboros/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ouroboros/utils.h b/include/ouroboros/utils.h
index 0e50c039..2eaccae9 100644
--- a/include/ouroboros/utils.h
+++ b/include/ouroboros/utils.h
@@ -25,3 +25,6 @@
* need when represented as a string
*/
int n_digits(unsigned i);
+
+/* Returns a copy of the source string */
+char * strdup(const char * src);