version 1.32 | | version 1.33 |
---|
| | |
/* | | /* |
* static char *rcsid_porting_c = | | * static char *rcsid_porting_c = |
* "$Id: porting.c,v 1.32 2006/05/21 12:43:30 akirschbaum Exp $"; | | * "$Id: porting.c,v 1.33 2006/05/21 12:44:35 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* unix variants. | | * unix variants. |
*/ | | */ |
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(strlen(str)+1); |
if (c!=NULL) | | if (c!=NULL) |
strcpy(c,str); | | strcpy(c,str); |
return c; | | return c; |