diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-05 09:07:22 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-05 09:07:22 +0200 |
commit | 656db09805cbff0b6af3c34f611b710116df4b82 (patch) | |
tree | 566e317c4afdf604e2ffb53098ff469a35eb0e6c /src/lib/utils.c | |
parent | 96acaa2b5732a7685725b5c46045eda3375a3839 (diff) | |
parent | 5c745cccbe1774780f499e5cc979eb77d2aac5c7 (diff) | |
download | ouroboros-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.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; |