Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / string / strndup.c
blob3ac890a8cac535bc919cd100bfa02e8ec0daaea5
1 #ifndef _REENT_ONLY
3 #include <_ansi.h>
4 #include <reent.h>
5 #include <stdlib.h>
6 #include <string.h>
8 char *
9 strndup (const char *str,
10 size_t n)
12 return _strndup_r (_REENT, str, n);
15 #endif /* !_REENT_ONLY */