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

  1. /*********************
  2.  *
  3.  *  ut_head.h [NON-ANSI] - utility functions header file.
  4.  *
  5.  *  Purpose: This file contains constants and globals used by the utility
  6.  *           library functions.
  7.  *
  8.  *  Blackstar C Function Library
  9.  *  (c) Copyright 1985,1989 Sterling Castle Software
  10.  *
  11.  *******/
  12.  
  13. /*
  14.  *  Structures for date and time
  15.  */
  16.  
  17. struct DATE {
  18.     int yr;
  19.     short int dy;
  20.     short int mo;
  21.     };
  22.  
  23. struct TIME {
  24.     short int hr;
  25.     short int mn;
  26.     short int sec;
  27.     short int hsec;        /* 1/100's of second */
  28.     };
  29.  
  30. /*
  31.  *  Option masks for dateoptf_ and timeoptf_
  32.  */
  33.  
  34. #define DMO3F   0x01            /* 3 digit month names      */
  35. #define DTNDF   0x02            /* name of day in strings   */
  36. #define DTNMF    0x04        /* name of month in strings */
  37. #define DDY3F    0x08        /* 3 digit day names */
  38. #define DYR2F   0x10            /* 2 digit years     */
  39. #define TSECF    0x01        /* secs and hsecs in time string */
  40. #define T24HF   0x02            /* time in 24 hour format        */
  41.  
  42. extern struct DATE today_;      /* current date */
  43. extern struct TIME time_;       /* current time */
  44.  
  45. extern char dateoptf_;          /* date format option flag */
  46. extern char timeoptf_;          /* time format option flag */
  47. extern char leapf_;             /* flag for a leap year    */
  48.  
  49. extern  int month_;             /* Global current date */
  50. extern  int day_;
  51. extern  int year_;
  52.  
  53. extern  int hour_;              /* Global current time */
  54. extern  int minute_;
  55. extern  int sec_;
  56. extern  int hsec_;
  57.  
  58. extern int  mo_days_[];
  59. extern char *mo_names_[];
  60. extern char *mo_3names_[];
  61. extern char *dy_names_[];
  62. extern char *dy_3names_[];
  63.