diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 12:32:37 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-13 12:32:37 +0000 |
| commit | 2b0e9c3f5f0eb631619bc111764146553bcdf303 (patch) | |
| tree | dc85f649a57bf72fc300808b36bee606daff9688 /src/compat.c | |
| parent | 3324e62bae6f04e4f16f113b2e3352fae242f405 (diff) | |
Merge commit 'cbx/anopeng-config' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1429 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/compat.c')
| -rw-r--r-- | src/compat.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/compat.c b/src/compat.c index 7b7947c1c..0279efec8 100644 --- a/src/compat.c +++ b/src/compat.c @@ -57,27 +57,3 @@ int strnicmp(const char *s1, const char *s2, size_t len) /*************************************************************************/ -#if !HAVE_STRDUP -char *strdup(const char *s) -{ - char *new = calloc(strlen(s) + 1, 1); - if (new) - strcpy(new, s); - return new; -} -#endif - -/*************************************************************************/ - -#if !HAVE_STRSPN -size_t strspn(const char *s, const char *accept) -{ - size_t i = 0; - - while (*s && strchr(accept, *s)) - ++i, ++s; - return i; -} -#endif - -/*************************************************************************/ |
