1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// GENERATED FILE
//
use super::*;
use f2rust_std::*;
pub const LBCELL: i32 = -5;
const GRPOFF: i32 = -2;
//$Procedure PODONC ( Pod, offset and number, character )
pub fn PODONC(
POD: CharArray,
OFFSET: &mut i32,
NUMBER: &mut i32,
ctx: &mut Context,
) -> f2rust_std::Result<()> {
let POD = DummyCharArray::new(POD, None, LBCELL..);
//
// SPICELIB functions
//
//
// Local parameters
//
//
// Standard SPICE error handling.
//
if spicelib::RETURN(ctx) {
return Ok(());
} else {
spicelib::CHKIN(b"PODONC", ctx)?;
}
//
// The offset of the active group can be recovered directly from
// the control area of the pod. The cardinality of the pod always
// indicates the end of the active group.
//
DCODEC(&POD[GRPOFF], OFFSET, ctx)?;
*NUMBER = (spicelib::CARDC(POD.as_arg(), ctx)? - *OFFSET);
spicelib::CHKOUT(b"PODONC", ctx)?;
Ok(())
}