summaryrefslogtreecommitdiffstats
path: root/src/core/stringextra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stringextra.c')
-rw-r--r--src/core/stringextra.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/stringextra.c b/src/core/stringextra.c
index bd45ae89..c2be4fc4 100644
--- a/src/core/stringextra.c
+++ b/src/core/stringextra.c
@@ -271,18 +271,3 @@ void * memscan(const void * addr, int c, size_t size)
return (void *) p;
}
#endif
-
-char * strndup(const char *s, size_t n)
-{
- size_t len = strlen(s);
- char *new;
-
- if (len>n)
- len = n;
- new = malloc(len+1);
- if (new) {
- new[len] = '\0';
- memcpy(new,s,len);
- }
- return new;
-}