Jump to content

SomvalistGetTarget: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
Line 3: Line 3:


==Syntax==
==Syntax==
<PRE>
va_list          ap;
va_list          ap;
unsigned long    rc;
unsigned long    rc;
 
rc = somvalistGetTarget(ap);
rc = somvalistGetTarget(ap);
</PRE>


==Parameters==
==Parameters==
; ap (va_list) : The va_list from which to get the value.  
;ap (va_list): The va_list from which to get the value.


==Return Code==
==Return Code==
; rc (unsigned long) : Scalar value from the va_list.  
;rc (unsigned long): Scalar value from the va_list.


==Remarks==
==Remarks==
Returns the first scalar value from the va_list without other side effects.  
Returns the first scalar value from the va_list without other side effects.


==Example Code==
==Example Code==
Line 32: Line 30:


==Related==
==Related==
===Functions===
;Functions
* [[somVaBuf_create]]  
*[[somVaBuf_create]]
* [[somVaBuf_add]]  
*[[somVaBuf_add]]  
* [[somVaBuf_get_valist]]  
*[[somVaBuf_get_valist]]
* [[somVaBuf_destroy]]  
*[[somVaBuf_destroy]]  
* [[somvalistSetTarget]]
*[[somvalistSetTarget]]


[[Category:SOM Kernel]]
[[Category:SOM function]]

Latest revision as of 04:48, 6 May 2020

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