prompt> man 3 sqrt
prompt> man -k root
#include <time.h> char *ctime(time_t *clock)This means that you must have #include <time.h> in your file before you call ctime. And that function ctime takes a pointer to type time_t as an argument, and returns a string (char *). time_t will probably be defined in the same manual page.
ctime() converts a long integer, pointed to by clock, to a 26-character string of the form produced by asctime().