getdate


dos functions in c


/*
Write a program in C for getdate dos function
*/

#include<stdio.h>
#include<dos.h>

main()
{
   struct date d;

   getdate(&d);

   printf("Current system date is %d/%d/%d\n",d.da_day,d.da_mon,d.da_year);

   return 0;
}

Post a Comment

2 Comments