void getcml_c ( SpiceInt * argc,
SpiceChar *** argv )
Store the contents of argv and argc for later access..
None.
UTILITY
Variable I/O Description
-------- --- --------------------------------------------------
argc O The number of command line arguments.
argv O The vector of command line arguments.
None.
argc is the number of command line arguments.
argv is the vector of space delimited command line arguments.
Each entry entry contains one argument. argv[0] is the
command name.
None.
This routines participates in error tracing but detects no errors.
Error detection is done in zzgetcml_c.c.
None.
This routine is a wrapper function for zzgetcml_c.c. getcml_c
allows a user to access the argv and argc values from any program
module.
#include <stdio.h>
#include <stdlib.h>
#include "SpiceUsr.h"
void main( int argc, char *argv[] )
{
/. Store argv and argc for latter access. ./
putcml_c (argc, argv );
..... other stuff .....
..... .....
}
void goop ()
{
..... new module .....
SpiceInt argc;
SpiceChar ** argv;
.....
.....
/. Now get the stored information. ./
getcml_c ( &argc, &argv );
}
None.
None.
E.D. Wright (JPL)
-CSPICE Version 1.0.1, 08-FEB-1998 (EDW)
Routine rewritten to use private routine zzgetcml_c.c.
-CSPICE Version 1.0.1, 14-JAN-1997 (EDW)
Replaced a defined variable type for argv with a *** declaration.
-CSPICE Version 1.0.0, 6-JAN-1997 (EDW)
store/retrieve argc argv
Link to routine getcml_c source file getcml_c.c
|