SW006014 Microchip Technology, SW006014 Datasheet - Page 43

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
2.11
© 2008 Microchip Technology Inc.
<STDARG.H> VARIABLE ARGUMENT LISTS
The header file
functions to have arguments without corresponding parameter declarations. There
must be at least one named argument. The variable arguments are represented by
ellipses (...). An object of type
arguments.
the argument list, and
va_list
Description:
Include:
Example:
va_arg
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
va_start
stdarg.h
The type va_list declares a variable that will refer to each argument
in a variable-length argument list.
<stdarg.h>
See va_arg.
Gets the current argument
<stdarg.h>
#define va_arg(va_list ap, Ty)
ap
Ty
Returns the current argument
va_start must be called before va_arg.
#include <stdio.h>
#include <stdarg.h>
void tprint(const char *fmt, ...)
{
will initialize the variable to an argument list,
va_end
va_list ap;
va_start(ap, fmt);
while (*fmt)
{
switch (*fmt)
{
supports functions with variable argument lists. This allows
pointer to list of arguments
type of argument to be retrieved
va_list
will end the use of the argument.
must be declared inside the function to hold the
/* for printf */
/* for va_arg, va_start,
va_list, va_end */
va_arg
DS51456E-page 39
will access

Related parts for SW006014