#include <ogg/os_types.h>#include <sys/types.h>#include <string.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| char * | strdup (const char *inStr) |
|
|
Definition at line 6 of file strdup.c. References _ogg_malloc. 00007 { 00008 char *outStr = NULL; 00009 00010 if (inStr == NULL) { 00011 return NULL; 00012 } 00013 00014 outStr = _ogg_malloc(strlen(inStr) + 1); 00015 00016 if (outStr != NULL) { 00017 strcpy(outStr, inStr); 00018 } 00019 00020 return outStr; 00021 }
|