PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 316

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
va_arg( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
302
va_arg(argptr, type)
argptr is a special argument pointer of type va_list
type – This is data type like int or char.
The first call to va_arg after va_start return the value of the parameters after that
specified by the last parameter. Successive invocations return the values of the
remaining arguments in succession.
The function will return the next argument every time it is called.
All devices.
#INCLUDE <stdarg.h>
int foo(int num, ...)
{
int sum = 0;
int i;
va_list argptr;
va_start(argptr,num);
for(i=0; i<num; i++)
va_end(argptr);
return sum;
}
None
nargs(), va_end(),
sum = sum + va_arg(argptr, int);
va_start()
// create special argument pointer
// end variable processing
// initialize argptr

Related parts for PCDIDE COMPILER