SW500009 Microchip Technology, SW500009 Datasheet - Page 237

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
Library Functions
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
l
f
printf("Total = %4d%", 23)
printf("Size is %lx" , size)
Note that the precision number is only available when using Midrange
and High-end processors when using the %s placeholder.
printf("Name = %.8s", "a1234567890")
Note that 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%’
223

Related parts for SW500009