I am trying to convert a field from the stat info of a file into a string.
I have created a typedef of time_type which is a char array of 50.
The code I am trying to use is
*strcpy(out_file.time_last_mod, ctime(&file_info.st_mtime);
and I am getting a parse error.
out_file is defined as a struct with time_last_mod as a time_type field, and st_mtime comes straight from the stat type info.
can anyone please suggest why the parse error?
Many thanks
sue