rem: char num; char* vendorValue=NULL; char* vendorName=NULL; int vid;
context: int vendorNameFromId(AAAVendorId vendorId, char* vendorAttr){   file=fopen("vendors","r");	if(file==NULL){      //LOG(L_ERR,"ERROR:no vendors file found!\n");      return 0;   }   char num;   char* vendorValue=NULL;   char* vendorName=NULL;   int vid;   while((num=fgetc(file))!=EOF){      if(num == '#')         while ((num=fgetc(file))!='\n' || num!=EOF);      else{         ungetc(num,file);         if(fscanf(file,"%s %s %i %s\n",vendorAttr,vendorValue,&vid,vendorName)==4){            if(vid==vendorId){               return 1;            }         }         else            while ((num=fgetc(file))!='\n' || num!=EOF);      }   }   return 0;}