version 1.17, 2001/09/27 18:19:20 |
version 1.19, 2001/11/19 19:02:13 |
|
|
void |
void |
cal() |
cal() |
{ |
{ |
register int printing; |
int printing; |
register char *p; |
char *p; |
FILE *fp; |
FILE *fp; |
int ch, l, i, bodun = 0, bodun_maybe = 0; |
int ch, l, i, bodun = 0, bodun_maybe = 0; |
int var; |
int var; |
|
|
if (!(chdir(home) == 0 && |
if (!(chdir(home) == 0 && |
chdir(calendarHome) == 0 && |
chdir(calendarHome) == 0 && |
(fdin = open(calendarFile, O_RDONLY)) != -1)) |
(fdin = open(calendarFile, O_RDONLY)) != -1)) |
errx(1, "no calendar file: ``%s'' or ``~/%s/%s", |
errx(1, "no calendar file: ``%s'' or ``~/%s/%s''", |
calendarFile, calendarHome, calendarFile); |
calendarFile, calendarHome, calendarFile); |
} |
} |
} |
} |