diff options
Diffstat (limited to 'sway/stringop.c')
-rw-r--r-- | sway/stringop.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/stringop.c b/sway/stringop.c index 31a036c3..8d6cac2f 100644 --- a/sway/stringop.c +++ b/sway/stringop.c | |||
@@ -362,12 +362,3 @@ char *argsep(char **stringp, const char *delim) { | |||
362 | found: | 362 | found: |
363 | return start; | 363 | return start; |
364 | } | 364 | } |
365 | |||
366 | char *strdup(const char *str) { | ||
367 | char *dup = malloc(strlen(str) + 1); | ||
368 | if (dup) { | ||
369 | strcpy(dup, str); | ||
370 | } | ||
371 | return dup; | ||
372 | } | ||
373 | |||