]>
gcc.gnu.org Git - gcc.git/blob - libiberty/strdup.c
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)
This page took 0.036124 seconds and 5 git commands to generate.