Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / string / strdup.c
1 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrti.h>
3
4
5 char *_strdup(const char *_s)
6 {
7 char *rv;
8 if (_s == 0)
9 return 0;
10 rv = (char *)malloc(strlen(_s) + 1);
11 if (rv == 0)
12 return 0;
13 strcpy(rv, _s);
14 return rv;
15 }