Hello, cb30
It's not a exact answer but time, gettime and fopen is depend on
your system.
For your reference, here is small information for time() from P@CC.
I hope it can be useful for you.
Good luck.
:roll:
TIME
Synopsis
#include <time.h>
time_t time (time_t * t)
Description
This function is not provided as it is dependant on the target
system supplying the current time. This function will be user implemented.
When implemented, this function should return the current time in seconds
since 00:00:00 on Jan 1, 1970. If the argument t is not equal to NULL ,
the same value is stored into the object pointed to by t .
Example
#include <stdio.h>
#include <time.h>
void main (void)
{
time_t clock;
time(&clock);
printf(" s", ctime(&clock));
}
See Also
ctime(), gmtime(), localtime(), asctime()
Return Value
This routine when implemented will return the current time in
seconds since 00:00:00 on Jan 1, 1970.
Note
The time() routine is not supplied, if required the user will
have to implement this routine to the specifications outlined above.