shithub: 9ferno

ref: f38ffb2e9b569b388bfa44d08eab369509359ab7

View raw version
#include "lib9.h"

char*
strdup(const char *s) 
{  
	char *os;

	os = malloc(strlen(s) + 1);
	if(os == 0)
		return 0;
	return strcpy(os, s);
}