spl.c
/* Add the pre-defined constants to the list */
Add the pre-defined constants to the list
Add the pre - defined constants to the list
void add_predefined_constants()
{
    int value;
    char name[CONSTANT_NAME_MAX_LEN];
    FILE *c_fp;
    c_fp = fopen("splconstants.cfg", "r");
    if (!c_fp)
    {
        printf("\nUnable to open splconstants.cfg file!\nExiting\n");
        exit(0);
    }
    while (!feof(c_fp))
    {
        bzero(name, CONSTANT_NAME_MAX_LEN);
        if (fscanf(c_fp, "%s %d", name, &value) == 2)
            insert_constant(name, value);
        else
            break;
    }
    fclose(c_fp);
}
void add_predefined_constants ( ) { int value ; char name [ CONSTANT_NAME_MAX_LEN ] ; FILE * c_fp ; c_fp = fopen ( " " , " " ) ; if ( ! c_fp ) { printf ( " \n \n \n " ) ; exit ( 0 ) ; } while ( ! feof ( c_fp ) ) { bzero ( name , CONSTANT_NAME_MAX_LEN ) ; if ( fscanf ( c_fp , " " , name , & value ) == 2 ) insert_constant ( name , value ) ; else break ; } fclose ( c_fp ) ; }
Add the pre-defined constants to the list
Add the pre - defined constants to the list