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

12 lines
219 B
C

#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;
}