Subversion Repositories Kolibri OS

Rev

Rev 6412 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6412 siemargl 1
#include 
2
#include 
3
 
4
char* strdup(const char* str)
145 halyavin 5
{
6
	char* res;
7
	int len;
8
	len=strlen(str)+1;
9
	res=malloc(len);
6433 siemargl 10
	if(res)
11
        memcpy(res,str,len);
145 halyavin 12
	return res;
13
}