void appndi_c ( SpiceInt item,
SpiceCell * cell )
Append an item to an integer cell.
CELLS
CELLS
VARIABLE I/O DESCRIPTION
-------- --- --------------------------------------------------
item I The item to append.
cell I/O The cell to which item will be appended.
item is an integer value which is to be appended to cell.
cell is an integer SpiceCell to which item will be appended.
cell is the input SpiceCell with item appended. item is the
last member of cell.
If cell is actually a CSPICE set on input and ceases to
qualify as a set as result of the requested append
operation, the isSet member of cell will be set to
SPICEFALSE.
None.
1) If the input cell argument doesn't have integer data type,
the error SPICE(TYPEMISMATCH) is signaled.
2) If the cell is not big enough to accommodate the addition
of a new element, the error SPICE(CELLTOOSMALL) is signaled.
None.
None.
1) In the following example, the element 34 is appended to
the integer cell fibNums.
#include "SpiceUsr.h"
.
.
.
/.
Declare the cell with maximum number of elements MAXSIZ.
./
SPICEINT_CELL ( fibNums, MAXSIZ );
.
.
.
/.
Before appending 34, the cell contains:
Element 0: == 1
Element 1: == 1
Element 2: == 2
Element 3: == 3
Element 4: == 5
Element 5: == 8
Element 6: == 13
Element 7: == 21
The following call appends the element 34 at index 8, and
updates the cardinality.
./
appndi_c ( 34, &fibNums );
None.
None.
N.J. Bachman (JPL)
H.A. Neilan (JPL)
-CSPICE Version 1.0.0, 01-AUG-2002 (NJB) (HAN)
append an item to an integer cell
Link to routine appndi_c source file appndi_c.c
|