29 char *
new =
malloc (len + 1);
35 return memcpy (
new, s, len);
char * strndup(char const *s, size_t n)
A replacement function, for systems that lack strndup.
size_t strnlen(const char *string, size_t maxlen)
Find the length of STRING, but scan at most MAXLEN characters.