SW500008 Microchip Technology, SW500008 Datasheet - Page 249

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Library Functions
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.
argument will be taken from the list to provide that value. The types of conversion 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.
Long integer conversion - Preceding the integer conversion key letter with an l indicates that the
argument list is long.
Floating point - m is the total width and n is the number of digits after the decimal point. If n is
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
l
f
#include <stdio.h>
unsigned char printf (const char * fmt, ...)
235

Related parts for SW500008