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/getfom.c $
5 $LastChangedRevision: 137 $
6 $Date: 2014-07-15 16:38:33 -0400 (Tue, 15 Jul 2014) $
8 ***********************************************************
10 Previously part of SuperSNARK
14 #include "experimenter.h"
17 /* ----------------------- getfom.c -----------------------------------
18 This function examines the input string and returns several flags
19 whose values depend on the figures of merit present in the string
22 string - input string.
25 stru - equals 1 if STRU is present, else equals 0
26 poin - equals 1 if POIN is present, else equals 0
27 hitr - equals 1 if HITR is present, else equals 0
28 usr1 _ equals 1 if USR1 is present, else equals 0
29 usr... _ equals 1 if USR... is present, else equals 0
30 iroi _ equals 1 if IROI is present, else equals 0
31 klds _ equals 1 if KLDS is present, else equals 0
32 wsqd _ equals 1 if WSQD is present, else equals 0
35 void getfom(char* string, int* stru, int* poin, int* hitr, int* usr1, int* usr2, int* usr3, int* usr4, int* usr5, int* iroi, int* klds, int* wsqd)
49 if (strcasestr(string, "STRU") != NULL)
54 if ((strcasestr(string, "POIN") != NULL))
59 if ((strcasestr(string, "HITR") != NULL))
64 if ((strcasestr(string, "USR1") != NULL))
69 if ((strcasestr(string, "USR2") != NULL))
74 if ((strcasestr(string, "USR3") != NULL))
79 if ((strcasestr(string, "USR4") != NULL))
84 if ((strcasestr(string, "USR5") != NULL))
88 if ((strcasestr(string, "IROI") != NULL))
92 if ((strcasestr(string, "KLDS") != NULL))
96 if ((strcasestr(string, "WSQD") != NULL))