Back to index
Go to the source code of this file.
Definition at line 36 of file strdup.c.
Definition at line 41 of file strdup.c.
size_t len = strlen (s) + 1;
void *new = malloc (len);
if (new == NULL)
return (char *) memcpy (new, s, len);