home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / cwt2.zip / DATETEST.C < prev    next >
Text File  |  1989-11-25  |  668b  |  30 lines

  1. #include <stdio.h>
  2. #include <c_wndw.h>
  3. /*
  4. *    Copyright 1989, Marietta Systems, Inc.
  5. *    All rights reserved
  6. */
  7.  
  8. /*
  9. *     This program reads the system date and then allows the date
  10. *    to be amended until the operator presses the F10 or ESC keys.
  11. */
  12.  
  13.  
  14. void main ()
  15. {
  16.      int ret = 0;
  17.      char date1[3]; /* compressed format date */
  18.      clr_scrn ("Test date functions");
  19.      set_keys (1, ESC);
  20. /* get the date field */
  21.      dateread (date1); /* get todays date */
  22.      do
  23.      {
  24.          display ("Enter the date field: ", 2, 2, high);
  25.          ret = accept (date1, date, alt_high, 8, 0);
  26.      } while (ret != QUIT && ret != ESC);
  27. /* end the program */
  28.      goodbye (0);
  29. }
  30.