summaryrefslogtreecommitdiffstats
path: root/String.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-12-25 20:23:53 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-12-25 20:23:53 +0000
commit81e44312b4976d5516f129f36a67fe381bcb6883 (patch)
tree01f7dcdce2275ab6026f0f56762500fc8fa0a54b /String.c
parent93233a67ea124b8127b50b45cd91c95ca022f8e7 (diff)
Use strdup explicitly
Diffstat (limited to 'String.c')
-rw-r--r--String.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/String.c b/String.c
index 81e9eeeb..7d8d285a 100644
--- a/String.c
+++ b/String.c
@@ -5,7 +5,7 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#define _GNU_SOURCE
+#include "config.h"
#include "String.h"
#include <string.h>
#include <strings.h>
@@ -18,10 +18,6 @@ in the source distribution for its full text.
#define String_startsWith(s, match) (strstr((s), (match)) == (s))
}*/
-inline char* String_copy(const char* orig) {
- return strdup(orig);
-}
-
char* String_cat(const char* s1, const char* s2) {
int l1 = strlen(s1);
int l2 = strlen(s2);

© 2014-2024 Faster IT GmbH | imprint | privacy policy