gettime


dos functions in c


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

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

main()
{
   struct time t;

   gettime(&t);

   printf("Current system time is %d : %d : %d\n",t.ti_hour,t.ti_min,t.ti_sec);

   return 0;
}

Post a Comment

0 Comments