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

getdate.c « go32 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7593b0af03acd1db4771f21f67ba245a8c9ac1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "dos.h"

void getdate( struct date *dateblk)
{
  union REGS regs;
  regs.h.ah = 0x2a;
  intdos( &regs, &regs);
  dateblk-> da_year = regs.x.cx;
  dateblk-> da_mon = regs.h.dh;
  dateblk-> da_day = regs.h.dl;
}