2 ***********************************************************
3 $SNARK_Header: S N A R K 1 4 - A PICTURE RECONSTRUCTION PROGRAM $
4 $HeadURL: svn://dig.cs.gc.cuny.edu/snark/trunk/src/snark/check_if_iroi.c $
5 $LastChangedRevision: 85 $
6 $Date: 2014-07-02 16:07:08 -0400 (Wed, 02 Jul 2014) $
8 ***********************************************************
10 Previously part of SuperSNARK
16 #include "check_if_iroi.h"
17 #include "experimenter.h"
22 void check_if_iroi(char * anaflname, //name of ANALYSIS file
23 int * iroi_used //flag to be set if IROI fom is to be used
26 int stru, poin, hitr, usr1, usr2, usr3, usr4, usr5, iroi;
28 char string[MAXLINESIZE], key1[50], line[MAXLINESIZE], key2[50],
29 keywrd1[50], keywrd2[50];
31 FILE *anafl; //ANALYSIS file
35 //open anaflname for reading
36 strcpy(line, "In check_if_iroi.c: error in file");
37 sprintf(line, "%s %s at line ", line, anaflname);
39 if ((anafl = fopen(anaflname, "r")) == NULL)
41 errorc("in check_if_iroi.c: error in opening file ", anaflname);
44 while (fgets(string, sizeof(string), anafl) != NULL)
46 if (strncasecmp(string, "comp", 4) == 0)
48 if ((strcasestr(string, "IROI") != NULL))
60 } //end of check_if_iroi ( )