int cdds_scank(alias, keys);
[ Description | Arguments | Output | Examples ]
"keys" is a list of keywords to match against "tokens" available in value. It may be blank, it may be one of the DDS utility strings defined in cdds.h (e.g., DDS_TRUE_KEY), or it may be any other string useful to the application.
Keyword matching is requested with non-blank keys. Each "token" in value is compared to all of the keywords in keys. When a match is found, comparison stops and cdds_scank returns the "token" number within value that matched a keyword. ("token" numbering starts at 1.) The "position" is advanced to the "token". When a match is not found, the function returns zero and the "position" is not changed.
The function returns EOF when no definition is found for non-blank alias and when alias is blank and a definition is not yet selected.
   /* retrieve # axes from dictionary associated with bin_tag */
   BIN_TAG bin_tag;
   int ier, rank;
   ier = cddx_dict(bin_tag,"scan");
   rank = cdds_scank("axis","\0");
   /* retrieve verbose flag from par: dictionary */
   int ier, verbose;
   ier = cdds_dict("par:","scan");
   verbose = ( cdds_scank("verbose",DDS_TRUE_KEY) > 0 );
    
    
cdds_dict  Select DDS dictionary and mode
cddx_dict  Select DDS dictionary and mode
cdds_scanf Retrieve a definition