mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-17 04:12:34 +03:00
10 lines
132 B
C
10 lines
132 B
C
|
char* strdup(char* str)
|
||
|
{
|
||
|
char* res;
|
||
|
int len;
|
||
|
len=strlen(str)+1;
|
||
|
res=malloc(len);
|
||
|
memcpy(res,str,len);
|
||
|
return res;
|
||
|
}
|