27 lines
491 B
C
27 lines
491 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "day.h"
|
|
|
|
int main(int argc, char * argv[]) {
|
|
uint64_t day_number;
|
|
|
|
if (argc < 2) {
|
|
printf("Advent of **C**ode\n");
|
|
printf("%s DAY_NUMBER", argv[0]);
|
|
return -1;
|
|
}
|
|
|
|
day_number = strtol(argv[1], NULL, 10);
|
|
|
|
switch (day_number) {
|
|
case 1:
|
|
day_1();
|
|
break;
|
|
default:
|
|
printf("Invalid day ding dong!\n");
|
|
return -2;
|
|
}
|
|
}
|