#include <cl.h> number = cl_matched(cl,index); /* MACRO */
The "cl_matched" macro returns the number of times the parsing routines found an argument matching a given Options Table entry. If the "cl" data structure was created by "cl_ceparse", this will be either the number of occurrences in the scanned environment variable or in the parsed command line; if the command line overrides the environment variable, "cl_matched" returns the number of occurrences in the command line but not the environment variable.
Copyright © 1996, Thinkage Ltd.