3 @deftypefn Supplemental char* strdup (const char *@var{s})
5 Returns a pointer to a copy of @var{s} in memory obtained from
6 @code{malloc}, or @code{NULL} if insufficient memory was available.
16 char *result
= (char*)malloc(strlen(s
) + 1);
17 if (result
== (char*)0)