#include <stdio.h>
#include <stdlib.h>
-const char *FILENAME = "tl.log";
-const size_t BUF_SIZE = 1024;
-
-static void die(const char *message) {
- fputs(message, stderr);
- fputc('\n', stderr);
- exit(1);
-}
+#include "common.h"
-static void die_err(const char *message) {
- perror(message);
- exit(1);
-}
+const size_t BUF_SIZE = 1024;
static void read_line(char *buf) {
if (fgets(buf, BUF_SIZE, stdin) == NULL) {