hi , i'm writing a user define function for time i don't know is it correct.. need help
here are my code
void Time(char buffer[256], time_t curtime , struct tm *loctime)
{
curtime = time (NULL);
loctime = localtime (&curtime);
fputs (asctime (loctime), stdout);
strftime (buffer, 256, "Today is %A, %B %d.\n", loctime);
fputs (buffer, stdout);
strftime (buffer, 256, "The time is %I:%M %p.\n", loctime);
fputs (buffer, stdout);
return 0;
}