]> gcc.gnu.org Git - gcc.git/blame - libiberty/strdup.c
* tree.c (walk_tree): Set lineno.
[gcc.git] / libiberty / strdup.c
CommitLineData
6599da04
JM
1char *
2strdup(s)
3 char *s;
4{
5 char *result = (char*)malloc(strlen(s) + 1);
6 if (result == (char*)0)
7 return (char*)0;
8 strcpy(result, s);
9 return result;
10}
This page took 0.151961 seconds and 5 git commands to generate.