Committing days 1-4

This commit is contained in:
2023-12-04 19:40:03 -05:00
commit db9b6acbb6
19 changed files with 2500 additions and 0 deletions

27
boilerplate.c Normal file
View File

@@ -0,0 +1,27 @@
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
int main(int argc, char **argv)
{
// Get filename as an argument, defaults to "input.txt"
char *path = (argc > 1) ? argv[1] : "input.txt";
if (!path)
{
printf("Requires input file.\n");
return 1;
}
FILE *file = fopen(path, "r");
if (!file)
{
printf("Could not find file.");
return 1;
}
// Code goes here
return 0;
}