Welcome to mirror list, hosted at ThFree Co, Russian Federation.

strndup.c « string « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c241ca54480b553b2398d73e545b8affe30bb11d (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 */