Va_Arg - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

C Run-Time Library Reference

va_arg

get next argument in variable-length list of arguments
Synopsis
#include <stdarg.h>
void va_arg(va_list ap, type);
Description
The
macro is used to walk through the variable length list of argu-
va_arg
ments to a function.
After starting to process a variable-length list of arguments with
call
with the same
va_arg
list. Each call to
Substitute a
type
the
parameter in each call to
type
.
va_end
The header file
to access the list of variable arguments.
The function calling
and types of arguments in the list. It needs this information to determine
how many times to call
each time. There are several common ways for a function to determine
this type of information. The standard C
argument looking for %-sequences to determine the number and types of
its extra arguments. In the example below, all of the arguments are of the
same type (
char*
end of the argument list. Other methods are also possible.
If a call to
va_arg
is called with a type parameter that is different from the type of the
va_arg
next argument in the list, the behavior of
3-158
va_list
returns a new argument from the list.
va_arg
name corresponding to the type of the next argument for
defines a pointer type called
stdarg.h
is responsible for determining the number
va_arg
and what to pass for the type parameter
va_arg
), and a termination value (NULL) is used to indicate the
is made after all arguments have been processed, or if
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
variable to extract arguments from the
. After processing the list, call
va_arg
function reads its first
printf
is undefined.
va_arg
for ADSP-219x DSPs
va_start
that is used
va_list
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents