summaryrefslogtreecommitdiff
path: root/src/lib/utils.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-05 09:07:22 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-05 09:07:22 +0200
commit656db09805cbff0b6af3c34f611b710116df4b82 (patch)
tree566e317c4afdf604e2ffb53098ff469a35eb0e6c /src/lib/utils.c
parent96acaa2b5732a7685725b5c46045eda3375a3839 (diff)
parent5c745cccbe1774780f499e5cc979eb77d2aac5c7 (diff)
downloadouroboros-656db09805cbff0b6af3c34f611b710116df4b82.tar.gz
ouroboros-656db09805cbff0b6af3c34f611b710116df4b82.zip
Merged in dstaesse/ouroboros/be-deprecate-strdup (pull request #153)
Be deprecate strdup
Diffstat (limited to 'src/lib/utils.c')
-rw-r--r--src/lib/utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/lib/utils.c b/src/lib/utils.c
index 49065138..acaf1176 100644
--- a/src/lib/utils.c
+++ b/src/lib/utils.c
@@ -35,25 +35,6 @@ int n_digits(unsigned i)
return n;
}
-char * strdup(const char * src)
-{
- int len = 0;
- char * dst = NULL;
-
- if (src == NULL)
- return NULL;
-
- len = strlen(src) + 1;
-
- dst = malloc(len);
- if (dst == NULL)
- return NULL;
-
- memcpy(dst, src, len);
-
- return dst;
-}
-
char * path_strip(char * src)
{
char * dst = NULL;