Move code to the "src" subdirectory

This commit is contained in:
2014-12-03 00:07:30 +01:00
parent 552552a539
commit 2c581b262c
12 changed files with 21 additions and 16 deletions

15
src/util.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util.h"
char *String_Copy(char *str) {
char *strnew;
int len;
len = strlen(str);
strnew = malloc(len + 1);
strcpy(strnew, str);
return (strnew);
}