Showing code as examples (CONFIG)

void getConfig(){
FILE *anyfile;char label[80];char label2[80];char chart;int valueOFitem;/*Variables*/
if ((anyfile=fopen("configure.ac","r")) == NULL)
  {printf("ERR\n");exit(1);}
  while(!feof(anyfile))
  {
  if(fgets(label2,80,anyfile))
    {
    sscanf(label2,"%s %c = %d",label,&chart,&valueOFitem);
    if (chart >= 'a' && chart <= 'z')
       {printf("The button %c is set as value %d \n",chart,valueOFitem);}
    }
  }/* Mohr */
fclose(anyfile);}

========================
In this test case, the elements are arranged as identifier + character from a to z + a value.
Somewhat like this: GROUPNAME [a-z] = #### decimal

0 comments:

Contributors

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen