double param(string,parameter,default) char *string; char *parameter; double default; char *params(string,parameter,default) char *string; char *parameter; char *default;
Example calls might be:
sampfreq = param(item.history,"freq",12800.0); or linkflag = param(item.history,"linked",0.0);
params operates in exactly the same way as param except: (i) if the substring "<parameter>=" is found, the string delimited by the following separator is returned; (ii) if the substring is not found, the default value - a pointer to char - is returned; (iii) if the substring "<parameter>" is found, that very substring is returned;(iv) valid separators do not include whitespace.
An example call might be:
match = params(item.history,"type",NULL);VERSION/AUTHOR
1.0 - Mark Huckvale
Fri Jul 09 14:54:18 2004