summaryrefslogtreecommitdiff
path: root/Advent-of-Code-2021/AOC-16/main.c
blob: baa6501b4ca5a0f866dce9d37d039a90fafa637d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdio.h>
#include <stdlib.h>

#if 1
    #define FILE_PATH "example.txt"
#else
    #define FILE_PATH "input.txt"
#endif

void parse()
{
    FILE *fp = fopen(FILE_PATH, "r");
    if(!fp) {
        fprintf(stderr, "ERROR: Could not open file: %s\n", FILE_PATH);
        exit(EXIT_FAILURE);
    }

    fclose(fp);
}

int main(void)
{
    parse();
    return 0;
}