aboutsummaryrefslogtreecommitdiff
path: root/sway/stringop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-12 19:42:44 -0500
committerDrew DeVault <sir@cmpwn.com>2015-11-12 19:43:03 -0500
commitc43ef2aedd0b2be3236e3e9feced447b956e496c (patch)
tree777c9a6cfff8d70e7a2ac395e942162522555ee8 /sway/stringop.c
parent11b1ba397f9bef1266f073fafab3e8de51346032 (diff)
We don't need to implement strdup
After defining _GNU_SOURCE
Diffstat (limited to 'sway/stringop.c')
-rw-r--r--sway/stringop.c9
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) {
found:
return start;
}
-
-char *strdup(const char *str) {
- char *dup = malloc(strlen(str) + 1);
- if (dup) {
- strcpy(dup, str);
- }
- return dup;
-}
-