home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / INC / UT_DEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-21  |  1.2 KB  |  44 lines

  1. /*********************
  2.  *
  3.  *  ut_defs.h [NON-ANSI] - definitions used by utility functions.
  4.  *
  5.  *  Purpose: This file contains the definitions for globals used by
  6.  *           the utility function group.
  7.  *
  8.  *  Blackstar C Function Library
  9.  *  (c) Copyright 1985,1989 Sterling Castle Software
  10.  *
  11.  *******/
  12.  
  13. struct DATE {
  14.     int yr;
  15.     short int dy;
  16.     short int mo;
  17.     } today_;               /* current date */
  18.  
  19. struct TIME {
  20.     short int hr;
  21.     short int mn;
  22.     short int sec;
  23.     short int hsec;         /* 1/100's of second */
  24.     } time_;                /* current time      */
  25.  
  26. char    dateoptf_ ;        /* date format option flag */
  27. char    timeoptf_ ;        /* time format option flag */
  28. char    leapf_;                 /* flag for a leap year    */
  29.  
  30. int    mo_days_[13] =
  31.     {0,31,28,31,30,31,30,31,31,30,31,30,31};
  32.  
  33. char    *mo_names_[] =
  34.     {"January","February","March","April","May","June","July",
  35.      "August","September","October","November","December"};
  36. char     *mo_3names_[] =
  37.     {"Jan","Feb","Mar","Apr","May","Jun","Jul",
  38.      "Aug","Sep","Oct","Nov","Dec"};
  39.     
  40. char    *dy_names_[] =
  41.       {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
  42. char    *dy_3names_[] =
  43.       {"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
  44.