Sign in
chromium
/
native_client
/
nacl-toolchain
/
gcc-4.4.3
/
.
/
newlib
/
newlib
/
libc
/
string
/
strndup.c
blob: caa1b68b7be4189b70e7f0e891cac83e58107a75 [
file
] [
log
] [
blame
]
#ifndef
_REENT_ONLY
#include
<_ansi.h>
#include
<reent.h>
#include
<stdlib.h>
#include
<string.h>
char
*
_DEFUN
(
strndup
,
(
str
,
n
),
_CONST
char
*
str _AND
size_t
n
)
{
return
_strndup_r
(
_REENT
,
str
,
n
);
}
#endif
/* !_REENT_ONLY */