17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

va_end( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

va_end(argptr)<br />

argptr is a special argument pointer of type va_list.<br />

None<br />

A call to the macro will end variable processing. This will facillitate a<br />

normal return from the function whose variable argument list was<br />

referred to by the expansion of va_start().<br />

Availability:<br />

Requires:<br />

All devices.<br />

#INCLUDE <br />

Examples:<br />

int foo(int num, ...)<br />

{<br />

int sum = 0;<br />

int i;<br />

va_list argptr; // create special argument pointer<br />

va_start(argptr,num); // initialize argptr<br />

for(i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!