safectime
const char *safectime(time_t *);
fprintf(logfp, "Log ended at: %s\n", safectime(&tloc));
fprintf(script, "# Script ended at: %s\n", safectime(&tloc));
"Created by NetBSD sysinst on", safectime(&now));
fprintf(logfp, "Log ended at: %s\n", safectime(&tloc));
"Log started at: %s\n", safectime(&tloc));
safectime(&tloc));
safectime(&tloc));
strlcpy(cur_time, safectime(&t), sizeof cur_time);