home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / lan / soss.arj / INCLUDE / DATE.H < prev    next >
C/C++ Source or Header  |  1991-04-11  |  560b  |  19 lines

  1. /* Copyright 1986 by Carnegie Mellon */
  2. /*  Copyright 1985 by the Massachusetts Institute of Technology  */
  3.  
  4. /* to get the date from MS-DOS, call get_dosl(GETDATE) and store the
  5.     result in a long variable. Then have a pointer to a struct __date
  6.     and assign the address of the long to it. Then you can access
  7.     fields of the date using the structure.
  8. */
  9.  
  10. struct __date {
  11.     char     _d_day;        /* day of month */
  12.     char     _d_month;    /* month of year - 1 based */
  13.     unsigned _d_year;    /* year in binary */
  14.     };
  15.  
  16. #define    GETDATE    0x2a
  17.  
  18. extern long get_dosl();
  19.