4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-15 19:09:58 +08:00

13 lines
223 B
C
Raw Normal View History

2000-02-17 19:39:52 +00:00
#include "dos.h"
void gettime( struct time *tp)
{
union REGS regs;
regs.h.ah = 0x2c;
intdos( &regs, &regs);
tp->ti_hour = regs.h.ch;
tp->ti_min = regs.h.cl;
tp->ti_sec = regs.h.dh;
tp->ti_hund = regs.h.dl;
}