source: trunk/libs/newlib/src/newlib/libc/string/strndup.c @ 567

Last change on this file since 567 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 213 bytes
Line 
1#ifndef _REENT_ONLY
2
3#include <_ansi.h>
4#include <reent.h>
5#include <stdlib.h>
6#include <string.h>
7
8char *
9strndup (const char *str,
10        size_t n)
11{
12  return _strndup_r (_REENT, str, n);
13}
14
15#endif /* !_REENT_ONLY */
Note: See TracBrowser for help on using the repository browser.