version 1.31 | version 1.32 | |||
---|---|---|---|---|
|
| |||
/* | /* | |||
* static char *rcsid_porting_c = | * static char *rcsid_porting_c = | |||
* "$Id: porting.c,v 1.31 2006/05/21 12:41:48 akirschbaum Exp $"; | * "$Id: porting.c,v 1.32 2006/05/21 12:43:30 akirschbaum Exp $"; | |||
*/ | */ | |||
/* | /* | |||
|
| |||
*/ | */ | |||
char *strdup_local(const char *str) { | char *strdup_local(const char *str) { | |||
char *c=(char *)malloc(sizeof(char)*(strlen(str)+1)); | char *c=(char *)malloc(sizeof(char)*(strlen(str)+1)); | |||
if (c!=NULL) | ||||
strcpy(c,str); | strcpy(c,str); | |||
return c; | return c; | |||
} | } |
Legend:
|