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

15
lib9/mallocz.c Normal file
View File

@@ -0,0 +1,15 @@
#include <u.h>
#include <unistd.h>
#include <string.h>
#include <libc.h>
void*
mallocz(unsigned long n, int clr)
{
void *v;
v = malloc(n);
if(clr && v)
memset(v, 0, n);
return v;
}