mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-10 08:09:53 +00:00
initial commit. This is icculus version 5542b94cae02a6333845854bbbd1abe0a259f1a4
This commit is contained in:
commit
3096eaf5e2
2519 changed files with 816064 additions and 0 deletions
21
ExternalLibs/libvorbis-1.3.1/macos/compat/strdup.c
Normal file
21
ExternalLibs/libvorbis-1.3.1/macos/compat/strdup.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue