IDIXGETX – Get data area hexadecimal character field value
Format
#include "idixhfmt.h"
#define IDIXGETX(pSrc) \
(IDIXGETX)(pSrc, sizeof(pSrc))
int (IDIXGETX)(char *pSrc, int src_len);
General description
IDIXGETX() is used to convert a data area character field that holds hexadecimal characters (0-9 or A-F) to an "int" value.
IDIXGETX() is a macro, which calls a function by the same name. The advantage of using the macro is that only a single argument is required.
Returned value
If successful, IDIXGETX() returns the converted signed "int" value, represented in the string. If unsuccessful, it returns an undefined value.
Example
#include "idixhfmt.h"
int pgm_len;
UFM ufm;
…
pgm_len = IDIXGETX(ufm.PROGRAM_LENGTH);