utils/slog.c
void log_to_file(char *out, const char *fname, SystemDate *mdate) 
{
    /* Used variables */
    char filename[PATH_MAX];

    /* Create log filename with date */
    sprintf(filename, "%s-%02d-%02d-%02d.log", 
        fname, mdate->year, mdate->mon, mdate->day);

    /* Log to file */
    file_add_line(filename, out);
}
/*
 * log_to_file - Save log in file. Argument aut is string which
 * we want to log. Argument fname is log file path and mdate is 
 * SystemDate structure variable, we need it to create filename.
 */
Save log in file. Argument aut is string which
we want to log. Argument fname is log file path and mdate is
SystemDate structure variable, we need it to create filename.
Save log in file . Argument aut is string which we want to log . Argument fname is log file path and mdate is SystemDate structure variable we need it to create filename .
void log_to_file(char *out, const char *fname, SystemDate *mdate) 
{
    char filename[PATH_MAX];
    sprintf(filename, "%s-%02d-%02d-%02d.log", 
        fname, mdate->year, mdate->mon, mdate->day);
    file_add_line(filename, out);
}
void log_to_file ( char * out , const char * fname , SystemDate * mdate ) { char filename [ PATH_MAX ] ; sprintf ( filename , " " , fname , mdate -> year , mdate -> mon , mdate -> day ) ; file_add_line ( filename , out ) ; }
log_to_file - Save log in file.
log_to_file - Save log in file .
/* Used variables */ /* Create log filename with date */ /* Log to file */