fix entries file
This commit is contained in:
parent
46f0a63b98
commit
3d311eac5b
@ -15,7 +15,9 @@ char mkevent(int argc, char *argv[]) {
|
|||||||
printf("ensure the events file defined in config.h exists\n" COL_RESET TXT_RESET);
|
printf("ensure the events file defined in config.h exists\n" COL_RESET TXT_RESET);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
fprintf(fp, "BEGIN ENTRY\n");
|
||||||
fprintf(fp, "%s", argv[2]); /* print date */
|
fprintf(fp, "%s", argv[2]); /* print date */
|
||||||
fprintf(fp, "%s", argv[3]); /* print name */
|
fprintf(fp, "%s", argv[3]); /* print name */
|
||||||
|
fprintf(fp, "END ENTRY\n");
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user