Revision 745 trunk/src/linad99/optmatch.cpp

optmatch.cpp (revision 745)
11 11
#include <admodel.h>
12 12

  
13 13
/**
14
 * Description not yet available.
15
 * \param
14
  Checks if the program has been invoked with a particular command line argument ("string"). 
15
  \param argc Number of command line arguments (as in all C programs)
16
  \param argv Array  (of length argc) of command line arguments (as in all C programs)
17
  \param string Should be one of the possible command line arguments to an ADMB program.  
18
  \return An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.
16 19
 */
20

  
17 21
 int option_match(int argc,char * argv[],const char * string)
18 22
 {
19 23
   int rval=-1;
......
89 93
 }
90 94

  
91 95
/**
92
 * Description not yet available.
93
 * \param
96
  Checks if the program has been invoked with a particular command line argument ("string"). If so, counts the number of arguments ("nopt") to this command line option. For example if the program has been invoked with the command line option "-ind FILE", then nopt=1.
97
  \param argc Number of command line arguments (as in all C programs)
98
  \param argv Array  (of length argc) of command line arguments (as in all C programs)
99
  \param string Should be one of the possible command line arguments to an ADMB program.  
100
  \param nopt On return holds the number arguments/options associated with "string".
101
  \return An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.
94 102
 */
95 103
int option_match(int argc, char *argv[],const char *string, const int& _nopt)
96 104
 {

Also available in: Unified diff