diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-05 15:47:23 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-05 15:47:23 +0200 |
commit | 63510348c9dd72e0f1d9146cfb90f88adb34e1eb (patch) | |
tree | b737bcdcedec9ce16487c2aa931aaf5c620f28ad /src/lib/utils.c | |
parent | a315150a16c02f3cb694e639d5aba555fce4b4c3 (diff) | |
parent | 656db09805cbff0b6af3c34f611b710116df4b82 (diff) | |
download | ouroboros-63510348c9dd72e0f1d9146cfb90f88adb34e1eb.tar.gz ouroboros-63510348c9dd72e0f1d9146cfb90f88adb34e1eb.zip |
Merge remote-tracking branch 'upstream/be' into be
Diffstat (limited to 'src/lib/utils.c')
-rw-r--r-- | src/lib/utils.c | 19 |
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; |