home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / CALEN / RTR / CALEN. next >
Encoding:
Text File  |  1998-07-24  |  551 b   |  20 lines

  1. --- calen.c.orig    Thu Jan 30 14:37:33 1997
  2. +++ calen.c    Thu Jan 30 14:48:53 1997
  3. @@ -29,6 +29,7 @@
  4.   
  5.  #include <stdio.h>
  6.  #include <ctype.h>
  7. +#include <string.h>
  8.  
  9.  #define FALSE   0
  10.  #define TRUE    1
  11. @@ -80,7 +81,7 @@
  12.      int argc;
  13.      char *argv[];
  14.      {
  15. -    int nmonths;            /* consecutive months to print */
  16. +    int nmonths = -1;            /* consecutive months to print */
  17.      int badopt = FALSE;            /* flag set if bad option */
  18.      int badpar = FALSE;            /* flag set if bad param  */
  19.      monthRec mRec[3];            /* space for main and small calendars */
  20.