Load a value into an argument

WTSupported in traditional Synergy on Windows


USupported on UNIX


void put_xarg_val(DESCRIP **argblock, int arg, INT_REG value)



The argument block pointer passed by the Synergy DBL subroutine to the C function.


The number of the argument to reference.


The value to be loaded.


The put_xarg_val function loads a value into an argument.

If the argument wasn’t passed, or if it’s a literal, the routine generates a trappable Synergy DBL error.

The value is stored according to the rules for moving integer data to the data type of the destination field. (See Assignment statements for details about these rules.)

You must use the put_xarg_val routine whenever a Synergy DBL numeric field is to be loaded with a value, even when the field is an integer. (Remember, integer data is stored in Synergy DBL fields in an unaligned form, and you may not be able to access it directly.)

On OpenVMS, the functionality of put_xarg_val is available as int_to_dscr. See the xcallv.h file for details. Its prototype is

void int_to_dscr(DESCRP*, INT_REG value)