HTML automatically generated with rman
Table of Contents


scanopt - scan a string of the form "word1,word2,..." for word match


bool scanopt(string option, string key);
int match(string keys, string option, int *mask);


scanopt searches a comma separated list of words for an exact match in one of it’s components. Useful to check if an option is present. Warning: words must be separated by exactly one comma -- no spaces allowed!

match is a related routine, which allows for minimum match. It is however limited to the number of bits available in an integer, since the mask returned contains a masked integer of the options selected in the input string keys.

See Also



Joshua Barnes, Peter Teuben


xx-xxx-86    Created in the dark ages    Josh
6-nov-94    documented                         peter

Table of Contents