aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/string/strdup.c
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 */