SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
Macros | Typedefs
stdarg.h File Reference

Standard variable argument handling for C. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define va_start(v, l)   __builtin_va_start(v, l)
 @macro va_start
 
#define va_arg(v, l)   __builtin_va_arg(v, l)
 @macro va_arg
 
#define va_end(v)   __builtin_va_end(v)
 @macro va_end
 
#define va_copy(d, s)   __builtin_va_copy(d, s)
 @macro va_copy
 

Typedefs

typedef __builtin_va_list va_list
 Type used for variable argument lists.
 

Detailed Description

Standard variable argument handling for C.

This header file provides macros for handling functions with a variable number of arguments. It defines the type va_list and the associated macros to initialize, access, and clean up variable arguments.

Macro Definition Documentation

◆ va_arg

#define va_arg (   v,
 
)    __builtin_va_arg(v, l)

@macro va_arg

Retrieve the next argument in the variable argument list.

This macro retrieves the next argument from the va_list variable v and advances v to the next argument. The type of the argument to be retrieved is specified by the type l.

Parameters
vThe va_list variable from which to retrieve the argument.
lThe type of the argument to be retrieved.
Returns
The next argument in the variable argument list.

◆ va_copy

#define va_copy (   d,
 
)    __builtin_va_copy(d, s)

@macro va_copy

Copy a va_list variable.

This macro copies the variable argument list from s to d, allowing multiple traversals of the same list.

Parameters
dThe destination va_list variable.
sThe source va_list variable to be copied.

◆ va_end

#define va_end (   v)    __builtin_va_end(v)

@macro va_end

Clean up the va_list variable.

This macro performs any necessary cleanup for the va_list variable v after all variable arguments have been accessed.

Parameters
vThe va_list variable to be cleaned up.

◆ va_start

#define va_start (   v,
 
)    __builtin_va_start(v, l)

@macro va_start

Initialize a va_list for variable argument access.

This macro initializes the va_list variable v to retrieve the variable arguments, starting after the last named parameter l.

Parameters
vThe va_list variable to be initialized.
lThe last known fixed argument before the variable arguments.

Typedef Documentation

◆ va_list

typedef __builtin_va_list va_list

Type used for variable argument lists.