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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER