SW006013 Microchip Technology, SW006013 Datasheet - Page 43

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
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 SW006013