Dear All,
I am trying to get current system time, so far i wrote as follows:-
i am getting 'time' and 'ctime' undeclared identifier.Code:#include <stdio.h>
#include <sys\types.h>
void main( )
{
time_t curtime ;
char ctm[50] ;
time ( &curtime ) ; //retrieves current time & stores in curtime
printf ( "\nCurrent Date & Time: %s", ctime (&curtime ) ) ;
}
what is the header file for time and ctime?
i am using Window XP operating system
Thanks in advance
Shwetha