Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -1,4 +1,5 @@ aoc aocdbg aocclang aoctcc +inputs/* Index: aoc.c ================================================================== --- aoc.c +++ aoc.c @@ -16,18 +16,18 @@ d = strtoul(argv[2], &err, 10); if (*err || (d < 1) || (d > 25)) d = 0; if (argc >= 4) { sprintf(dataname, "%.98s", argv[3]); } else { - sprintf(dataname, ".%04u%02u.txt", y, d); + sprintf(dataname, "inputs/%04u%02u.txt", y, d); } } if ((y == 0) || (d == 0)) { fprintf(stderr, "syntax: %s yyyy dd [input-file]\n", argv[0]); fprintf(stderr, " where 2015 <= yyyy <= %d\n", MAX_YEAR); fprintf(stderr, " and 1 <= dd <= 25\n"); - fprintf(stderr, "if no [input-file] is supplied loads the file .yyyydd.txt\n"); + fprintf(stderr, "if no [input-file] is supplied loads the file inputs/yyyydd.txt\n"); exit(EXIT_FAILURE); } // read data from dataname into input char *input = NULL; size_t ilen = slurp(&input, dataname);