Add uthash to project

This commit is contained in:
2021-12-21 07:58:03 -08:00
parent 45b55c05af
commit b86d508820
6 changed files with 24 additions and 6 deletions

View File

@ -3,7 +3,7 @@
#include <string.h>
#include "lfinput.h"
#include "math.h"
#include "lfmath.h"
void advent2015day02(void) {
size_t sz = 0;

View File

@ -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);
}