Home
last modified time | relevance | path

Searched refs:new (Results 1 – 2 of 2) sorted by relevance

/string/
A Dstrndup.c43 char *new = (char *) malloc (len + 1); in __strndup() local
45 if (new == NULL) in __strndup()
48 new[len] = '\0'; in __strndup()
49 return (char *) memcpy (new, s, len); in __strndup()
A Dstrdup.c42 void *new = malloc (len); in __strdup() local
44 if (new == NULL) in __strdup()
47 return (char *) memcpy (new, s, len); in __strdup()

Completed in 6 milliseconds