initial import

This commit is contained in:
garbeam@wmii.de
2005-11-20 18:27:27 +02:00
commit e5f0f74b8a
323 changed files with 41871 additions and 0 deletions

17
lib9/strdup.c Normal file
View File

@@ -0,0 +1,17 @@
#include <u.h>
#include <libc.h>
char*
strdup(char *s)
{
char *t;
int l;
l = strlen(s);
t = malloc(l+1);
if(t == nil)
return nil;
memmove(t, s, l+1);
return t;
}