mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
51d395d0cc
git-svn-id: svn://kolibrios.org@145 a494cfbc-eb01-0410-851d-a64ba20cac60
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;
|
|
}
|