FILE *f = fopen("tl.log", "r");
if (f == NULL)
die_err("Error opening log file");
if (fgets(buf, sizeof(buf), f) == NULL)
die("Error reading log file");
FILE *f = fopen("tl.log", "r");
if (f == NULL)
die_err("Error opening log file");
if (fgets(buf, sizeof(buf), f) == NULL)
die("Error reading log file");