Jump to content

SomvalistSetTarget: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:somvalistSetTarget}}
{{DISPLAYTITLE:somvalistSetTarget}}
Modifies the '''va_list''' without other side effects.  
Modifies the '''va_list''' without other side effects.
 
==Syntax==
==Syntax==
<PRE>
<PRE>
Line 11: Line 12:


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


==Return Code==
==Return Code==
; rc (unsigned long) : None.  
;rc (unsigned long): None.


==Remarks==
==Remarks==
Line 33: Line 34:


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


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

Latest revision as of 04:47, 6 May 2020

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