void putcml_c ( SpiceInt argc,
SpiceChar ** argv )
Store the contents of argv and argc for later access..
None.
UTILITY
Variable I/O Description
-------- --- --------------------------------------------------
argc I The number of command line arguments.
argv I The vector of command line arguments.
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.
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 routine for the initialization call to
zzgetcml_c. The first call to zzgetcml_c stores the values of argv
and argc where subsequent calls, via getcml_c, retrieve the values.
#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.2.0, 23-JUL-2001 (NJB)
Removed tab characters from source file.
Corrected previous version line.
-CSPICE Version 1.1.0, 08-FEB-1998 (EDW)
Routine rewritten to use private routine zzgetcml_c.c.
-CSPICE Version 1.0.0, 14-JAN-1997 (EDW)
store argc argv
Link to routine putcml_c source file putcml_c.c
|