1 /*
2 
3 -Procedure putcml_c ( Get the command line )
4 
5 -Abstract
6 
7    Store the contents of argv and argc for later access..
8 
9 -Disclaimer
10 
11    THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
12    CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
13    GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
14    ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
15    PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
16    TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
17    WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
18    PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
19    SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
20    SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
21 
22    IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
23    BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
24    LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
25    INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
26    REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
27    REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
28 
29    RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
30    THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
31    CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
32    ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
33 
34 -Required_Reading
35 
36    None.
37 
38 -Keywords
39 
40    UTILITY
41 
42 */
43 
44    #include "SpiceUsr.h"
45 
putcml_c(SpiceInt argc,SpiceChar ** argv)46    void putcml_c ( SpiceInt      argc,
47                    SpiceChar  ** argv )
48 
49 /*
50 
51 -Brief_I/O
52 
53    Variable  I/O  Description
54    --------  ---  --------------------------------------------------
55    argc       I   The number of command line arguments.
56    argv       I   The vector of command line arguments.
57 
58 -Detailed_Input
59 
60    argc      is the number of command line arguments.
61 
62    argv      is the vector of space delimited command line arguments.
63              Each entry entry contains one argument.  argv[0] is the
64              command name.
65 
66 
67 -Detailed_Output
68 
69    None.
70 
71 -Parameters
72 
73    None.
74 
75 -Exceptions
76 
77    This routines participates in error tracing but detects no errors.
78    Error detection is done in zzgetcml_c.c
79 
80 -Files
81 
82    None.
83 
84 -Particulars
85 
86    This routine is a wrapper routine for the initialization call to
87    zzgetcml_c.  The first call to zzgetcml_c stores the values of argv
88    and argc where subsequent calls, via getcml_c, retrieve the values.
89 
90 -Examples
91 
92    #include <stdio.h>
93    #include <stdlib.h>
94 
95    #include "SpiceUsr.h"
96 
97    void main( int argc, char *argv[] )
98    {
99 
100 
101       /. Store argv and argc for latter access. ./
102 
103       putcml_c ( argc, argv );
104 
105 
106       ..... other stuff .....
107       .....             .....
108 
109    }
110 
111 
112    void goop ()
113    {
114       ..... new module .....
115 
116       SpiceInt      argc;
117       SpiceChar  ** argv;
118 
119 
120       .....
121       .....
122 
123       /. Now get the stored information. ./
124 
125       getcml_c ( &argc, &argv );
126 
127    }
128 
129 
130 
131 -Restrictions
132 
133    None.
134 
135 -Literature_References
136 
137    None.
138 
139 -Author_and_Institution
140 
141    E.D. Wright    (JPL)
142 
143 -Version
144 
145    -CSPICE Version 1.2.0, 23-JUL-2001 (NJB)
146 
147        Removed tab characters from source file.
148        Corrected previous version line.
149 
150    -CSPICE Version 1.1.0, 08-FEB-1998   (EDW)
151 
152       Routine rewritten to use private routine zzgetcml_c.c.
153 
154    -CSPICE Version 1.0.0, 14-JAN-1997   (EDW)
155 
156 -Index_Entries
157 
158    store argc argv
159 
160 -&
161 */
162 
163 {
164    /*
165    'zzgetcml_c' does all the real work.  Make the call.  The SPICETRUE
166    boolean indicates the call is comming from putcml_c.c and not
167    getcml_c.c
168    */
169 
170    chkin_c( "putcml_c" );
171 
172    zzgetcml_c ( &argc, &argv, SPICETRUE );
173 
174    chkout_c( "putcml_c" );
175 
176 }
177 
178