User Tools

Site Tools


c:dos.h:getdate
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:dos.h:getdate [2013/02/03 13:13] (current)
158.181.88.241 created
Line 1: Line 1:
  
 +====== getdate ======
 +
 +===== description of getdate =====
 +Program to print the current system date, getdate c code below explain how to use this function to print computer date.
 +
 +<code c>
 +#include<stdio.h>
 +#include<dos.h>
 +
 +int main(void)
 +{
 +   struct date d;
 +   getdate(&d);
 +   printf("Date is %d/%d/%d\n",d.da_day,d.da_mon,d.da_year);
 +   return 0;
 +}
 +</code>
 +
 +==== output of getdate c example ====
 +    Date is 20/01/2012
advertising
c/dos.h/getdate.txt · Last modified: 2013/02/03 13:13 by 158.181.88.241

Impressum