Add uthash to project
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "lfinput.h"
|
||||
#include "math.h"
|
||||
#include "lfmath.h"
|
||||
|
||||
void advent2015day02(void) {
|
||||
size_t sz = 0;
|
||||
|
@ -4,7 +4,17 @@
|
||||
#include "lfinput.h"
|
||||
|
||||
void advent2015day07(void) {
|
||||
char *input = get_input("input/2015/07");
|
||||
printf("Solution for Day 07 of 2015 is not completed yet\n");
|
||||
free(input);
|
||||
size_t sz = 0;
|
||||
char **input = get_lines("input/2015/07", &sz);
|
||||
for (size_t i = 0; i < sz; ++i) {
|
||||
char *buf = malloc(sizeof(char) * 32);
|
||||
size_t sp_sz = 0;
|
||||
char **sp = split(buf, &sp_sz, " ");
|
||||
|
||||
|
||||
|
||||
del_split(sp);
|
||||
}
|
||||
|
||||
del_lines(input);
|
||||
}
|
||||
|
Reference in New Issue
Block a user