setup for 2022

This commit is contained in:
2022-12-02 06:53:34 -08:00
parent 5b68940efc
commit 6d6f3c5224
31 changed files with 318 additions and 4 deletions

10
src/2022/01.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day01(void) {
char *input = get_input("input/2022/01");
printf("Solution for Day 01 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/02.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day02(void) {
char *input = get_input("input/2022/02");
printf("Solution for Day 02 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/03.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day03(void) {
char *input = get_input("input/2022/03");
printf("Solution for Day 03 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/04.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day04(void) {
char *input = get_input("input/2022/04");
printf("Solution for Day 04 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/05.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day05(void) {
char *input = get_input("input/2022/05");
printf("Solution for Day 05 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/06.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day06(void) {
char *input = get_input("input/2022/06");
printf("Solution for Day 06 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/07.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day07(void) {
char *input = get_input("input/2022/07");
printf("Solution for Day 07 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/08.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day08(void) {
char *input = get_input("input/2022/08");
printf("Solution for Day 08 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/09.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day09(void) {
char *input = get_input("input/2022/09");
printf("Solution for Day 09 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/10.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day10(void) {
char *input = get_input("input/2022/10");
printf("Solution for Day 10 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/11.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day11(void) {
char *input = get_input("input/2022/11");
printf("Solution for Day 11 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/12.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day12(void) {
char *input = get_input("input/2022/12");
printf("Solution for Day 12 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/13.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day13(void) {
char *input = get_input("input/2022/13");
printf("Solution for Day 13 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/14.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day14(void) {
char *input = get_input("input/2022/14");
printf("Solution for Day 14 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/15.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day15(void) {
char *input = get_input("input/2022/15");
printf("Solution for Day 15 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/16.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day16(void) {
char *input = get_input("input/2022/16");
printf("Solution for Day 16 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/17.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day17(void) {
char *input = get_input("input/2022/17");
printf("Solution for Day 17 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/18.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day18(void) {
char *input = get_input("input/2022/18");
printf("Solution for Day 18 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/19.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day19(void) {
char *input = get_input("input/2022/19");
printf("Solution for Day 19 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/20.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day20(void) {
char *input = get_input("input/2022/20");
printf("Solution for Day 20 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/21.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day21(void) {
char *input = get_input("input/2022/21");
printf("Solution for Day 21 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/22.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day22(void) {
char *input = get_input("input/2022/22");
printf("Solution for Day 22 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/23.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day23(void) {
char *input = get_input("input/2022/23");
printf("Solution for Day 23 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/24.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day24(void) {
char *input = get_input("input/2022/24");
printf("Solution for Day 24 of 2022 is not completed yet\n");
free(input);
}

10
src/2022/25.c Normal file
View File

@ -0,0 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "lfinput.h"
void advent2022day25(void) {
char *input = get_input("input/2022/25");
printf("Solution for Day 25 of 2022 is not completed yet\n");
free(input);
}

View File

@ -14,6 +14,7 @@
#include "advent2019.h"
#include "advent2020.h"
#include "advent2021.h"
#include "advent2022.h"
int main(int argc, char **argv) {
if (argc != 3) {
@ -25,7 +26,7 @@ int main(int argc, char **argv) {
char buf[32];
const char *errstr = NULL;
year = strtonum(argv[1], 15, 21, &errstr);
year = strtonum(argv[1], 15, 22, &errstr);
if (NULL != errstr) {
printf("Input error: %s\n\n", errstr);
return 1;
@ -59,6 +60,9 @@ int main(int argc, char **argv) {
case 21:
solutions2021[day - 1]();
break;
case 22:
solutions2022[day - 1]();
break;
}
return 0;