int tsmGetArg ( int argc, char **argv, char *arg )

Check if an option was supplied on the command line

Documentation

Check if an option was supplied on the command line.

This function will take the argc and argv variables that were passed to an application's main() function and will then test to see if a specific option string was supplied in the command line. The string comparison is case sensitive.

Returns:
TRUE if arg exists in argv, FALSE if not.
Parameters:
argc - the number of arguments passed to main()
argv - the array of command line strings passed to main()
arg - an argument to test for in the argv array
Author:
Martin Reddy
Version:
10 March 1998
See Also:
tsmGetArgInt, tsmGetArgFloat, tsmGetArgString, tsmParseInitArgs, tsmParseReadArgs


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page