|
|
|
| Listing 4.2 timeinfo.h | |
|
|
|
|
/* timeinfo.h
+-------------------------------------------+
| Copyright (C) 1995 by Lance W. Latham. |
| All rights reserved. |
+-------------------------------------------+
Header file containing the definition of the elementary time
structure, TIME_INFO, in the SCDTL system.
*/
#ifndef __TIMEINFO_H
#define __TIMEINFO_H
struct TIME_INFO /* general time structure, 24 hour clock */
{
int hours; /* hours, 00 - 23 */
int minutes; /* minutes, 00 - 59 */
int seconds; /* seconds, 00 - 59 */
};
#endif |
|
|
|
|
|
|
| Listing 4.3 scdtl_1.h | |
|
|
|
|
/* scdtl_1.h
+-------------------------------------------+
| Copyright (C) 1995 by Lance W. Latham. |
| All rights reserved. |
+-------------------------------------------+
Standard C date/time library header file containing definitions
and data structures.
Header files in the basic SCDTL series are:
1. "scdtl_1.h", definitions and data structures.
2. "scdtl_2.h", basic date and time function prototypes.
3. "scdtl_3.h", prototypes for functions related specifically to DOS.
4. "scdtl_4.h", prototypes of functions related to days of observance.
5. "scdtl_5.h", prototypes of functions for date and time comparisons.
6. "scdtl_6.h", prototypes of functions for proleptic calendar
applications.
7. "scdtl_7.h", definitions, data structures and function prototypes
for date/time stamping and compression applications.
*/ |
|
|
|
|
|
|
|