SW006013 Microchip Technology, SW006013 Datasheet - Page 77

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
© 2008 Microchip Technology Inc.
printf
Description:
Include:
Prototype:
Arguments:
Return Value:
Remarks:
Prints formatted text to stdout.
<stdio.h>
int printf(const char *format, ...);
format
...
Returns number of characters generated or a negative number if an
error occurs.
There must be exactly the same number of arguments as there are for-
mat specifiers. If the are less arguments than match the format specifi-
ers, the output is undefined. If there are more arguments than match
the format specifiers, the remaining arguments are discarded. Each for-
mat specifier begins with a percent sign followed by optional fields and
a required type as shown here:
flags
-
0
+
space
#
width
specify the number of characters to generate for the conversion. If the
asterisk (*) is used instead of a decimal number, the next argument
(which must be of type int) will be used for the field width. If the result
is less than the field width, pad characters will be used on the left to fill
the field. If the result is greater than the field width, the field is
expanded to accommodate the value without padding.
precision
The field width can be followed with dot (.) and a decimal integer repre-
senting the precision that specifies one of the following:
- minimum number of digits to generate on an integer conversion
- number of fraction digits to generate on an e, E, or f conversion
- maximum number of significant digits to generate on a g or G
conversion
- maximum number of characters to generate from a C string on an s
conversion
If the period appears without the integer the integer is assumed to be
zero. If the asterisk (*) is used instead of a decimal number, the next
argument (which must be of type int) will be used for the precision.
%[flags][width][.precision][size]type
left justify the value within a given field width
Use 0 for the pad character instead of space (which is the
default)
generate a plus sign for positive signed values
generate a space or signed values that have neither a plus
nor a minus sign
to prefix 0 on an octal conversion, to prefix 0x or 0X on a
hexadecimal conversion, or to generate a decimal point and
fraction digits that are otherwise suppressed on a float-
ing-point conversion
format control string
optional arguments
DS51456E-page 73

Related parts for SW006013