IDIXGETN – Get data area decimal character field value

Format


#include "dixhfmt.h"

#define IDIXGETN(pSrc) \                    
        (IDIXGETN)(pSrc, sizeof(pSrc))
int     (IDIXGETN)(char *pSrc, int src_len);

General description

IDIXGETN() is used to convert a data area character field that contains decimal characters to an "int" value.

IDIXGETN() is a macro that 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, IDIXGETN() returns the converted signed "int" value, represented in the string. If unsuccessful, it returns an undefined value.

Example


#include "idixhfmt.h"

int num_events;
UFM ufm;
… 
num_events = IDIXGETN(ufm.NUM_EVENTS);