time_t hold_time;
hold_time=time(NULL);
I use this to intialize the time function ( displaying date and time to screen or writting it to a file ).
fprintf(File, ctime(&hold_time));
I then use this to write it into a file.
These functions are called on immediate program startup. If i use the ctime(&hold_time) function during the exit routine of the program, the new time isn't updated. How do i update it?
The program isn't oppened again unless you phsyically type it at the comand prompt. Instead, program flow is bounced around inside the source code. Basically im trying to achieve a starting time of the program, then a "new" exiting time.