ReactOS
0.4.15-dev-7108-g1cf6ce6
strdup.c
Go to the documentation of this file.
1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#include <precomp.h>
3
4
/*
5
* @implemented
6
*/
7
char
*
_strdup
(
const
char
*_s)
8
{
9
char
*rv;
10
if
(_s == 0)
11
return
0;
12
rv = (
char
*)
malloc
(
strlen
(_s) + 1);
13
if
(rv == 0)
14
return
0;
15
strcpy
(rv, _s);
16
return
rv;
17
}
strlen
ACPI_SIZE strlen(const char *String)
Definition:
utclib.c:269
strcpy
char * strcpy(char *DstString, const char *SrcString)
Definition:
utclib.c:388
_strdup
#define _strdup
Definition:
debug_ros.c:7
malloc
#define malloc
Definition:
debug_ros.c:4
sdk
lib
crt
string
strdup.c
Generated on Sat Dec 2 2023 06:12:38 for ReactOS by
1.9.6