More work on projects and cascading deletes

This commit is contained in:
Mike Dvorkin
2010-08-07 19:24:35 -07:00
parent 24c793fce5
commit 452d3afc9a
6 changed files with 285 additions and 83 deletions

View File

@@ -6,6 +6,10 @@
#include <sys/types.h>
#include "pit.h"
char *str2str(char *str) {
return strcpy(malloc(strlen(str) + 1), str); /* Cheap strdup() */
}
char *mem2str(char *mem, int len) {
char *str = malloc(len + 1);
memcpy(str, mem, len);