PDA

View Full Version : what is going wrong..



xlordt
04-01-2002, 01:14 AM
i keep getting errorz... can anyone tell me why.. ?


#include <stdio.h>
#include <time.h>



int main()
{
char *ctime(time_t clock);

time_t thetime;
thetime = time(NULL);

printf("\n",ctime(&thetime));

Deckard
04-01-2002, 11:32 AM
#include <stdio.h>
#include <time.h>

int main()
{
/* char *ctime(time_t clock); */

time_t thetime;
thetime = time(NULL);

printf("%s\n",ctime(&thetime));

return 0;
}