repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
string
/
strndup.c
blob
caa1b68b7be4189b70e7f0e891cac83e58107a75
1
#ifndef _REENT_ONLY
2
3
#include <_ansi.h>
4
#include <reent.h>
5
#include <stdlib.h>
6
#include <string.h>
7
8
char
*
9
_DEFUN
(
strndup
, (
str
,
n
),
10
_CONST
char
*
str _AND
11
size_t
n
)
12
{
13
return
_strndup_r
(
_REENT
,
str
,
n
);
14
}
15
16
#endif
/* !_REENT_ONLY */