(svn r26507) -Cleanup: remove now unused custom strndup implementation

This commit is contained in:
rubidium
2014-04-25 15:17:17 +00:00
parent e61fe21237
commit db8d208bfc
2 changed files with 0 additions and 18 deletions

View File

@@ -528,16 +528,6 @@ size_t Utf8TrimString(char *s, size_t maxlen)
return length;
}
#ifdef DEFINE_STRNDUP
char *strndup(const char *s, size_t len)
{
len = ttd_strnlen(s, len);
char *tmp = CallocT<char>(len + 1);
memcpy(tmp, s, len);
return tmp;
}
#endif /* DEFINE_STRNDUP */
#ifdef DEFINE_STRCASESTR
char *strcasestr(const char *haystack, const char *needle)
{