5 void getPol(
int xFill,
float &P_blue,
float &Q_yell,
float &eP,
float &eQ){
6 char *inpF=
"OsamuPol/polVsFill.dat";
8 FILE *fd=fopen(inpF,
"r"); assert(fd);
10 char buf[len], cdum[100];
16 k=fgets(buf,len,fd); i++;
17 if(buf[0]==
'#')
continue;
19 int j=sscanf(buf,
"%s %f %f %f %d %f %f %d",
20 cdum, &dum, &P_blue ,&eP, &nB, &Q_yell ,&eQ, &nY);
22 int fill=atoi(cdum+1);
23 if(fill!=xFill)
continue;
25 if(nB<1) {P_blue=0.0001,eP=2.;}
26 if(nY<1) {Q_yell=0.0001,eQ=2.;}
35 printf(
"%s blue=%f /- %f yell=%f +/- %f\n",cdum,P_blue, eP, Q_yell,eQ);