mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
9087163804
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
16 lines
213 B
C
16 lines
213 B
C
#ifndef _REENT_ONLY
|
|
|
|
#include <_ansi.h>
|
|
#include <reent.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
char *
|
|
strndup (const char *str,
|
|
size_t n)
|
|
{
|
|
return _strndup_r (_REENT, str, n);
|
|
}
|
|
|
|
#endif /* !_REENT_ONLY */
|