]> git.pld-linux.org Git - packages/br.git/blob - br-accept-cmdline.patch
- tabs in preamble
[packages/br.git] / br-accept-cmdline.patch
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
3 @@ -100,7 +100,7 @@
4  
5  
6  
7 -int main()
8 +int main(int argc, char* argv[])
9  {
10  
11    /* Start
12 @@ -110,10 +110,13 @@
13    /* --------------------------------------------------------------------
14       Eingabe des heutigen Datums [enter todays date]
15       -------------------------------------------------------------------- */
16 +
17 +if (argc != 2) {
18    (void) printf("\nDate     [<RETURN> for Systemdate] (DD.MM.YYYY) : ");
19  
20    INPUT(dtmp);
21  
22 +}
23    if (strlen(dtmp) != 10)
24    {                                /* get TODAY's date */
25      now = time((time_t *) NULL);
26 @@ -140,13 +143,20 @@
27    if (t_yy % 4 == 0)
28      MONATSTAG[1]=29;
29  
30 +
31    /* --------------------------------------------------------------------
32       Eingabe des Geburtstages  [enter the birthdate]
33       -------------------------------------------------------------------- */
34 +if (argc != 2) {
35 +
36    (void) printf("Birthday [<RETURN> for 04.12.1965] (DD.MM.YYYY) : ");
37  
38    INPUT(dtmp);
39 +} else {
40 +               strncpy(dtmp, argv[1], 10);
41 +}
42  
43 +  
44    if (strlen(dtmp) != 10)
45      (void) strcpy(dtmp,"04.12.1965");
46  
47 @@ -235,9 +245,9 @@
48         -------------------------------------------------------------------- */
49      if (!DRUCKER)
50      {
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);
58      }
59      else
This page took 0.188722 seconds and 3 git commands to generate.