|
|
|
| Listing 4.5 scdtl_3.h | |
|
|
|
|
/* scdtl_3.h
+-------------------------------------------+
| Copyright (C) 1995 by Lance W. Latham. |
| All rights reserved. |
+-------------------------------------------+
Standard C date/time library header file containing function
prototypes for DOS-related functions, only.
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.
*/
#ifndef __SCDTL_3_H
#define __SCDTL_3_H
#include "dateinfo.h"
#include "timeinfo.h"
/* DOS system date and time functions */
int set_system_date (struct DATE_INFO *d);
int set_system_time (struct TIME_INFO *t);
struct DATE_INFO get_system_date (void);
struct TIME_INFO get_system_time (void);
/* DOS file date and time functions */
unsigned int date_to_DOS_date (struct DATE_INFO *d);
unsigned int time_to_DOS_time (struct TIME_INFO *t);
struct DATE_INFO DOS_date_to_date (unsigned int d);
struct TIME_INFO DOS_time_to_time (unsigned int t);
#endif
|
|
|
|
|
|
|
|