home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
gnu
/
djgpp
/
libsrc
/
c
/
dos
/
settime.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-10-04
|
235 b
|
13 lines
#include <dos.h>
void settime( struct time *tp)
{
union REGS regs;
regs.h.ah = 0x2d;
regs.h.ch = tp->ti_hour;
regs.h.cl = tp->ti_min;
regs.h.dh = tp->ti_sec;
regs.h.dl = tp->ti_hund;
intdos( ®s, ®s);
}