repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
string
/
strndup.c
blob
3ac890a8cac535bc919cd100bfa02e8ec0daaea5
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
strndup
(
const char
*
str
,
10
size_t
n
)
11
{
12
return
_strndup_r
(
_REENT
,
str
,
n
);
13
}
14
15
#endif
/* !_REENT_ONLY */