SW500010 Microchip Technology, SW500010 Datasheet - Page 266

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
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
omitted it defaults to 6. If the precision is zero, the decimal point will be omitted unless the alternate
format is specified.
Example
266
l
f
printf("Total = %4d%", 23)
printf("Size is %lx" , size)
Note: precision number is only available when using Midrange
and High-end processors when using the %s
printf("Name = %.8s", "a1234567890")
Note: the variable width number is only available when using
Midrange and High-end processors placeholder.
printf("xx% * d", 3, 4)
/ * vprintf example * /
#include <stdio.h>
int
error (char * s, ...)
{
va_list ap;
va_start(ap, s);
printf("Error: ");
vprintf(s, ap);
yields ’Total =
where size is a long, prints size
as hexadecimal.
yields ’Name = a1234567’
yields ’xx
4’
23%’
placeholder.
Library Functions

Related parts for SW500010