aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strndup.c
blob: 64e9ae68e25c369a07e7c6c4083d278d2b165976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _REENT_ONLY

#include <_ansi.h>
#include <reent.h>
#include <stdlib.h>
#include <string.h>

char *
_DEFUN (strndup, (str, n), 
	_CONST char *str,
	size_t n)
{
  return _strndup_r (_REENT, str, n);
}

#endif /* !_REENT_ONLY */