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

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
Here is a function that calculates and returns the sum of all variables:
Some examples of using this new function:
Default Parameters
Default parameters allows a function to have default values if nothing is passed to it when called.
This function waits n milliseconds for a character over RS232. If a character is received, it saves it
to the pointer c and returns TRUE. If there was a timeout it returns FALSE.
int Sum(int count, ...)
{
}
x=Sum(5, 10, 20, 30, 40, 50);
y=Sum(3, a, b, c);
int mygetc(char *c, int n=100){
}
//gets a char, waits 100ms for timeout
mygetc(&c);
//gets a char, waits 200ms for a timeout
mygetc(&c, 200);
//a pointer to the argument list
va_list al;
int x, sum=0;
//start the argument list
//count is the first variable before the ellipsis
va_start(al, count);
while(count--) {
}
//stop using the list
va_end(al);
return(sum);
//get an int from the list
x = var_arg(al, int);
sum += x;
41

Related parts for PCDIDE COMPILER