SW500009 Microchip Technology, SW500009 Datasheet - Page 236

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
PRINTF
Synopsis
Description
The printf() function is a formatted output routine, operating on stdout. There are corresponding
routines operating into a string buffer (sprintf()). The printf() routine is passed a format string,
followed by a list of zero or more arguments. In the format string are conversion specifications, each
of which is used to print out one of the argument list values.
a conversion, followed by an optional width specification m. The n specification is an optional
precision specification (introduced by the dot) and c is a letter specifying the type of the conversion.
Field widths and precision are only supported on the midrange and high-end processors, with the
precision specification only applicable to %s.
argument will be taken from the list to provide that value. The types of conversion for the Baseline
series are:
Integer conversion - in radices 8, 16, 16, 10 and 10 respectively. The conversion is signed in the case
of d, unsigned otherwise. The precision value is the total number of digits to print, and may be used
to force leading zeroes. E.g. %8.4x will print at least 4 hex digits in an 8 wide field. The letter X
prints out hexadecimal numbers using the upper case letters A-F rather than a-f as would be printed
when using x. When the alternate format is specified, a leading zero will be supplied for the octal
format, and a leading 0x or 0X for the hex format.
Print a string - the value argument is assumed to be a character pointer. At most n characters from
the string will be printed, in a field m characters wide.
The argument is assumed to be a single character and is printed literally.
single percent sign.
addition of:
222
Each conversion specification is of the form %m.nc where the percent symbol % introduces
If the character * is used in place of a decimal constant, e.g. in the format %*d, then one integer
o x X u d
s
c
Any other characters used as conversion specifications will be printed. Thus % will produce a
For the Midrange and High-end series, the types of conversions are as for the Baseline with the
#include <stdio.h>
unsigned char printf (const char * fmt, ...)
Library Functions

Related parts for SW500009