1 --- /home/users/hunter/rpm/SOURCES/br.c Mon Jan 24 00:00:00 2000
2 +++ br.c Wed Jan 1 23:04:39 2003
8 +int main(int argc, char* argv[])
13 /* --------------------------------------------------------------------
14 Eingabe des heutigen Datums [enter todays date]
15 -------------------------------------------------------------------- */
18 (void) printf("\nDate [<RETURN> for Systemdate] (DD.MM.YYYY) : ");
23 if (strlen(dtmp) != 10)
24 { /* get TODAY's date */
25 now = time((time_t *) NULL);
31 /* --------------------------------------------------------------------
32 Eingabe des Geburtstages [enter the birthdate]
33 -------------------------------------------------------------------- */
36 (void) printf("Birthday [<RETURN> for 04.12.1965] (DD.MM.YYYY) : ");
40 + strncpy(dtmp, argv[1], 10);
44 if (strlen(dtmp) != 10)
45 (void) strcpy(dtmp,"04.12.1965");
48 -------------------------------------------------------------------- */
51 - (void) printf("Biorhythm %02d.%02d.%04d\n",th,mh,jh);
52 - (void) printf("Physical: %d%%\n",phys);
53 - (void) printf("Emotional: %d%%\n",emot);
54 + (void) printf("Biorhythm %02d.%02d.%04d\t",th,mh,jh);
55 + (void) printf("Physical: %d%%\t",phys);
56 + (void) printf("Emotional: %d%%\t",emot);
57 (void) printf("Mental: %d%%\n\n",geist);