Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gettime.c « go32 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba81161194e4b00f5eccccb06a699610414b2712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}