mirror of
https://github.com/reactos/reactos.git
synced 2024-10-28 00:58:20 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
18 lines
283 B
C
18 lines
283 B
C
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
|
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
char *_strdup(const char *_s)
|
|
{
|
|
char *rv;
|
|
if (_s == 0)
|
|
return 0;
|
|
rv = (char *)malloc(strlen(_s) + 1);
|
|
if (rv == 0)
|
|
return 0;
|
|
strcpy(rv, _s);
|
|
return rv;
|
|
}
|