PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 240

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
printf( ) fprintf( )
Syntax:
Parameters:
Returns:
Function:
226
printf (string)
printf (cstring, values...)
printf (fname, cstring, values...)
fprintf (stream, cstring, values...)
String is a constant string or an array of characters null terminated. Values is a list
of variables separated by commas, fname is a function name to be used for
outputting (default is putc is none is specified. Stream is a stream identifier (a
constant byte)
undefined
Outputs a string of characters to either the standard RS-232 pins (first two forms) or
to a specified function. Formatting is in accordance with the string argument. When
variables are used this string must be a constant. The % character is used within the
string to indicate a variable value is to be formatted and output. Longs in the printf
may be 16 or 32 bit. A %% will output a single %. Formatting rules for the % follows.
See the Expressions > Constants and Trigraph sections of this manual for other
escape character that may be part of the string.
If fprintf() is used then the specified stream is used where printf() defaults to
STDOUT (the last USE RS232).
Format:
The format takes the generic form %nt. n is optional and may be 1-9 to specify
how many characters are to be outputted, or 01-09 to indicate leading zeros, or
1.1 to 9.9 for floating point and %w output. t is the type and may be one of the
following:
c
s
u
d
Lu
Ld
x
X
Lx
LX
f
g
e
w
or
or
Character
String or character
Unsigned int
Signed int
Long unsigned int
Long signed int
Hex int (lower case)
Hex int (upper case)
Hex long int (lower case)
Hex long int (upper case)
Float with truncated decimal
Float with rounded decimal
Float in exponential format
Unsigned int with decimal place inserted. Specify two numbers for n.
The first is a total field width. The second is the desired number of
decimal places.

Related parts for PCDIDE COMPILER