Initial Commit

This commit is contained in:
2014-05-20 15:32:21 +01:00
commit 46bbd52885
30 changed files with 2029 additions and 0 deletions

11
util.c Normal file
View File

@@ -0,0 +1,11 @@
#include <string.h>
#include <stdlib.h>
#include "util.h"
char * strdup(char* s) {
char *d = calloc(1, strlen (s) + 1);
if (d == NULL) return NULL;
strcpy (d,s);
return d;
}