Jump to content

SomvalistGetTarget

From EDM2
Revision as of 22:31, 10 October 2017 by Martini (talk | contribs) (Created page with "Gets the first scalar value from a va_list without other side effects. ==Syntax== <PRE> va_list ap; unsigned long rc; rc = somvalistGetTarget(ap); </PRE> ==Para...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Gets the first scalar value from a va_list without other side effects.

Syntax

va_list          ap;
unsigned long    rc;

rc = somvalistGetTarget(ap);

Parameters

ap (va_list)
The va_list from which to get the value.

Return Code

rc (unsigned long)
Scalar value from the va_list.

Remarks

Returns the first scalar value from the va_list without 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