move strndup to libi3

This commit is contained in:
Michael Stapelberg
2011-10-23 18:02:01 +01:00
parent 78fea8e1fb
commit 9eda7fb6fb
6 changed files with 49 additions and 83 deletions

View File

@ -139,16 +139,4 @@ void *memmem(const void *l, size_t l_len, const void *s, size_t s_len);
#endif
#if defined(__APPLE__)
/*
* Taken from FreeBSD
* Returns a pointer to a new string which is a duplicate of the
* string, but only copies at most n characters.
*
*/
char *strndup(const char *str, size_t n);
#endif
#endif