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: caa1b68b7be4189b70e7f0e891cac83e58107a75 (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 _AND
	size_t n)
{
  return _strndup_r (_REENT, str, n);
}

#endif /* !_REENT_ONLY */