i think its finally done
This commit is contained in:
parent
921c412d68
commit
77669fd246
@ -25,5 +25,6 @@ char mkevent(int argc, char *argv[]) {
|
|||||||
printf("with name %s\n", argv[3]);
|
printf("with name %s\n", argv[3]);
|
||||||
fprintf(fp, "%s\n", argv[2]); /* print date */
|
fprintf(fp, "%s\n", argv[2]); /* print date */
|
||||||
fprintf(fp, "%s\n", argv[3]); /* print name */
|
fprintf(fp, "%s\n", argv[3]); /* print name */
|
||||||
|
fprintf(fp, "\n");
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ char printevents() {
|
|||||||
|
|
||||||
contents = fgetc(fp);
|
contents = fgetc(fp);
|
||||||
while (contents != EOF) {
|
while (contents != EOF) {
|
||||||
printf ("%c\n", contents);
|
printf ("%c", contents);
|
||||||
contents = fgetc(fp);
|
contents = fgetc(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user