zenilib
0.5.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
strdup.c
Go to the documentation of this file.
1
#include <
ogg/os_types.h
>
2
#include <
sys/types.h
>
3
#include <
string.h
>
4
#include <stdlib.h>
5
6
char
*
strdup
(
const
char
*inStr)
7
{
8
char
*outStr =
NULL
;
9
10
if
(inStr ==
NULL
) {
11
return
NULL
;
12
}
13
14
outStr =
_ogg_malloc
(strlen(inStr) + 1);
15
16
if
(outStr !=
NULL
) {
17
strcpy(outStr, inStr);
18
}
19
20
return
outStr;
21
}
strdup
char * strdup(const char *inStr)
Definition:
strdup.c:6
NULL
#define NULL
Definition:
ftobjs.h:61
os_types.h
String.h
types.h
_ogg_malloc
#define _ogg_malloc
Definition:
os_types.h:22
zenilib
jni
external
libvorbis
macos
compat
strdup.c
Generated on Thu Oct 3 2013 19:56:25 for zenilib by
1.8.5