integer function fdds_key(alias)
This function can be used to search definition values for keyword options and flags. It can also be used to count the number of tokens (array elements).
NOTE: It is preferred to use fdds_scank.
Alias lists one or more names, delimited by white space. They are used to search the current input definition. The search begins at the first character in the value. The search stops at the first character of the first token that matches any alias.
If alias names are not specified, tokens are counted. Tokens in the definition value are delimited by white space.
If alias names are not specified, the return value is the number of tokens found. This can be used to determine the array size required for a list of numbers. The current position is reset to the beginning of the value, after counting the tokens the value is ready to be retrieved by fdds_scanf.
integer no_print, pick_count ... ! check "print_option" for keyword j = fdds_scanf('print_option', ' ') print_option = fdds_key('verbose VERBOSE long') ! count the number of trace picks j = fdds_scanf('trace_picks', ' ') pick_count = fdds_key(' ')
fdds_scanf fdds_scanv