Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>setdate() set ms-dos date</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
setdate()                Set MS-DOS Date

 #include   <dos.h>

 void         setdate(dateblk);
 struct date  *dateblk;

    setdate() sets the system date (month, day, and year) to that in the
    'date' structure pointed to by 'dateblk'.  The 'date' structure is
    defined as follows:

          struct date {
               int da_year;             /* Current year */
               char da_day;             /* Day of the month */
               char da_mon;             /* Month (1 = Jan) */
          };

    Returns:    There is no return value.

See Also: getdate() gettime() settime()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson