home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / LIBSRC.ZOO / libsrc / local / time.c < prev    next >
Text File  |  1992-03-15  |  287b  |  18 lines

  1. #define INCL_DOSMISC
  2. #include <os2.h>
  3. #include <stdio.h>
  4. ULONG Dos32QuerySysInfo() asm ("Dos32QuerySysInfo");
  5.  
  6. int time (long *tbuf)
  7. {
  8.    long buf;
  9.  
  10.    Dos32QuerySysInfo (QSV_TIME_LOW, QSV_TIME_LOW, (PBYTE)&buf, 4);
  11.  
  12.    if (tbuf)
  13.      *tbuf = buf;
  14.  
  15.    return (buf);
  16. }
  17.  
  18.