Debian Codegraph @

pTk/strdup.c

raw symbols SCIP
1 #include "tkPort.h"
2 char *
3 strdup(s)
4 const char *s;
5 {
6 char *p = (char *) malloc(strlen(s)+1);
7 if (p)
8 strcpy(p,s);
9 return p;
10 }
11