aoc-2019-c

Advent of Code 2019 Solutions in C
git clone https://git.sinitax.com/sinitax/aoc-2019-c
Log | Files | Refs | README | sfeed.txt

aoc.h (365B)


      1#pragma once
      2
      3#include <stdlib.h>
      4
      5struct aoc {
      6	int debug;
      7	int part;
      8
      9	char *answer;
     10	const char *solution;
     11
     12	const char *inputfile;
     13	char *input;
     14	size_t input_size;
     15
     16	int argc;
     17	const char **argv;
     18};
     19
     20extern struct aoc aoc;
     21
     22void aoc_check(const char *sol, const char *fmtstr, ...);
     23void aoc_debug(const char *fmtstr, ...);
     24
     25void part1(void);
     26void part2(void);