diff options
Diffstat (limited to 'macos/compat/strdup.c')
-rwxr-xr-x | macos/compat/strdup.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/macos/compat/strdup.c b/macos/compat/strdup.c deleted file mode 100755 index 2ef4279..0000000 --- a/macos/compat/strdup.c +++ /dev/null @@ -1,21 +0,0 @@ -#include <ogg/os_types.h> -#include <sys/types.h> -#include <string.h> -#include <stdlib.h> - -char *strdup(const char *inStr) -{ - char *outStr = NULL; - - if (inStr == NULL) { - return NULL; - } - - outStr = _ogg_malloc(strlen(inStr) + 1); - - if (outStr != NULL) { - strcpy(outStr, inStr); - } - - return outStr; -} |