Jump to content

SomvalistSetTarget

From EDM2
Revision as of 22:36, 10 October 2017 by Martini (talk | contribs) (Created page with "Modifies the '''va_list''' without other side effects. ==Syntax== <PRE> va_list ap; unsigned long val; unsigned long rc; rc = somvalistSetTarget(ap, val); </P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Modifies the va_list without other side effects.

Syntax

va_list          ap;
unsigned long    val;
unsigned long    rc;

rc = somvalistSetTarget(ap, val);

Parameters

ap (va_list)
The va_list to modify.
val (unsigned long)
Value to set in the first scalar slot.

Return Code

rc (unsigned long)
None.

Remarks

The somvalistSetTarget function replaces the first scalar value on the va_list with the value val that is passed in the call without any other side effects.

Example Code

va_list start_val;
somVaBuf vb;
unsigned long first;
vb = (somVaBuf)somVaBuf_create(NULL, 0);
...
first = somvalistGetTarget(start_val);
...
somvalistSetTarget(start_val, first);

Related

Functions