Im supposed to make a function that prints the current time in the format like: 11:20:23 pm.
Here is what I got so far. Any hints would be helpful...
Code:void printTime()
{
time t*clock_p = newtime_t;
time_t clock;
int seconds, minutes, hours;
int T;
clock = time(clock_p)
T = (int)clock;
// lost on rest...
return;
