forked from KolibriOS/kolibrios
9bafc8aa7b
git-svn-id: svn://kolibrios.org@6412 a494cfbc-eb01-0410-851d-a64ba20cac60
13 lines
182 B
C
13 lines
182 B
C
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
char* strdup(const char* str)
|
|
{
|
|
char* res;
|
|
int len;
|
|
len=strlen(str)+1;
|
|
res=malloc(len);
|
|
memcpy(res,str,len);
|
|
return res;
|
|
}
|