version 1.18, 2005/12/08 14:54:30 |
version 1.19, 2006/03/24 03:44:14 |
|
|
char *p, lineout[30]; |
char *p, lineout[30]; |
|
|
day_array(month, year, days); |
day_array(month, year, days); |
(void)snprintf(lineout, sizeof lineout, "%s %d", |
(void)snprintf(lineout, sizeof(lineout), "%s %d", |
month_names[month - 1], year); |
month_names[month - 1], year); |
len = strlen(lineout); |
len = strlen(lineout); |
(void)printf("%*s%s\n%s\n", |
(void)printf("%*s%s\n%s\n", |
|
|
int days[12][MAXDAYS]; |
int days[12][MAXDAYS]; |
char *p, lineout[80]; |
char *p, lineout[80]; |
|
|
(void)snprintf(lineout, sizeof lineout, "%d", year); |
(void)snprintf(lineout, sizeof(lineout), "%d", year); |
center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0); |
center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0); |
(void)printf("\n\n"); |
(void)printf("\n\n"); |
for (i = 0; i < 12; i++) |
for (i = 0; i < 12; i++) |
|
|
int days[12][MAXDAYS]; |
int days[12][MAXDAYS]; |
char *p, lineout[80]; |
char *p, lineout[80]; |
|
|
(void)snprintf(lineout, sizeof lineout, "%d", year); |
(void)snprintf(lineout, sizeof(lineout), "%d", year); |
center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0); |
center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0); |
(void)printf("\n\n"); |
(void)printf("\n\n"); |
for (i = 0; i < 12; i++) |
for (i = 0; i < 12; i++) |