mirror of
https://github.com/michaeldv/pit.git
synced 2025-12-11 17:03:01 +00:00
More work on projects and cascading deletes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user