EDCS Reference Manual
Concept Mapping from EDCS 3.1 to EDCS 4.x Functions
EDCS 3p1EnumerantCodeFromLabel
extern EDCS_Status_Code
EDCS_3p1EnumerantCodeFromLabel
(
EDCS_Integer  ea_3p1_code_in,1
const char  *ee_3p1_label_in,2
const EDCS_Integer  *ea_3p1_code_out3
);

Definition

Retrieves integer-based enumerant code for the given EDCS 3.1 enumerant label.


Returns

EDCS_SC_SUCCESS and the requested enumerant code is copied into *ee_3p1_code_out, if valid parameters were passed in.
EDCS_SC_NULL_REQUIRED_PARAMETER and *ee_3p1_code_out is left unaltered, if any parameter was NULL.
EDCS_SC_INVALID_INPUT_CODE and *ee_3p1_code_out is set to 0, if *ea_3p1_code_in does not correspond to a valid EDCS 3.1 attribute.
EDCS_SC_INVALID_INPUT_LABEL and *ee_3p1_code_out is set to 0, if *ee_3p1_label_in does not correspond to a valid EDCS 3.1 enumerant for the attribute specified.

Parameters Notes

1 the EDCS 3.1 attribute code to which the EDCS 3.1 enumerant label specified in ee_3p1_label_in belongs.

2 the EDCS 3.1 attribute label to which the EDCS 3.1 enumerant label specified in ee_3p1_label_in belongs.

3 pointer to a pointer variable in the user's memory space where the EDCS 3.1 enumerant code value will be copied.


Prev: EDCS_3p1ClassificationCodeFromLabel. Next: EDCS_3p1GroupCodeFromLabel. Up:Index.