Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

sdfval Read operand value from transfer area

&pagelevel(5)&pagelevel

The sdfval function reads the value of an operand at a certain position from the standardized transfer area. The sdfval call must be preceded by an sdftyp or sdfstv call defining the operand type and the operand length.

Since the function has an optional parameter, there are 2 different formats.

Format 1:


int sdfval (char *area, int pos, char *val, int lng);


Format 2:


int sdfvalls (char *area, int pos, char *val, int lng, int lst);


Description of the parameters

char *area

Pointer to the buffer in which the standardized transfer area
was created (see sdfinit).

int pos

Position of the operand in the current operand array.

char *valPointer to a string in which the value is to be placed.
int lngLength of the val string, must be greater than or equal to
the value returned beforehand for the lng parameter by
sdfstv or sdftyp.

int lst

Relevant only if the operand is an element in a list and
specifies the position of the operand in the list.

Result

The function returns an integer as its result (see "Description of the C functions").