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

strdup.c « string « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dbb06926427892f019c935ba73e84e233bc150fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _REENT_ONLY

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

char *
_DEFUN (strdup, (str), _CONST char *str)
{
  return _strdup_r (_REENT, str);
}

#endif /* !_REENT_ONLY */