1 /* FILENAME: init_enc_struct.c
3 PROGRAMMER: STEVE LOWE, SAIC
4 REVISED BY: ALICE NAKAJIMA, SAIC
9 #include "dprints.h" /* for dprints */
10 #include "gribfuncs.h" /* prototypes */
13 ************************************************************************
14 * A. FUNCTION: init_enc_struct
15 * initializes structures DATA_INPUT and GEOM_IN
18 * void init_enc_struct (data_input, geom_in, user_input)
20 * ARGUMENTS (I=input, O=output, I&O=input and output):
21 * (O) DATA_INPUT *data_input; encoder struct to be initialized
22 * (O) GEOM_IN *geom_in; encoder struct to be initialized
23 * (O) USER_INPUT *user_input; encoder struct to be initialized
26 ************************************************************************
29 void init_enc_struct ( DATA_INPUT
*data_input
, GEOM_IN
*geom_in
,
30 USER_INPUT
*user_input
)
32 void init_enc_struct ( data_input
, geom_in
, user_input
)
33 DATA_INPUT
*data_input
;
35 USER_INPUT
*user_input
;
38 DPRINT0 ("Entering init_enc_struct()\n");
41 * A.1 CLEAR elements of DATA_INPUT Structure
43 * A.2 CLEAR elements of GEOM_IN Structure
45 * A.3 CLEAR elements of USER_INPUT Structure
47 memset ((void *)data_input
, '\0', sizeof (DATA_INPUT
));
48 memset ((void *)geom_in
, '\0', sizeof (GEOM_IN
));
49 memset ((void *)user_input
, '\0', sizeof (USER_INPUT
));
51 DPRINT0 ("Exiting init_enc_struct()\n");