utils/files.c
int file_add_line(char *fname, char *line) 
{
    /* Open file pointer */
    FILE *fp = fopen(fname, "a");
    if (fp == NULL) return -1;

    /* Write key in file */
    fprintf(fp, "%s\n", line);

    /* Close file pointer */
    fclose(fp);

    return 1;
}
/* file_add_line - Add line to file. First argument fname
 * is file path in which we want to append line and second
 * argument line is line to be added to file */
Add line to file. First argument fname
is file path in which we want to append line and second
argument line is line to be added to file
Add line to file . First argument fname is file path in which we want to append line and second argument line is line to be added to file
int file_add_line(char *fname, char *line) 
{
    FILE *fp = fopen(fname, "a");
    if (fp == NULL) return -1;
    fprintf(fp, "%s\n", line);
    fclose(fp);
    return 1;
}
int file_add_line ( char * fname , char * line ) { FILE * fp = fopen ( fname , " " ) ; if ( fp == NULL ) return -1 ; fprintf ( fp , " \n " , line ) ; fclose ( fp ) ; return 1 ; }
file_add_line - Add line to file.
file_add_line - Add line to file .
/* Open file pointer */ /* Write key in file */ /* Close file pointer */