PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 304

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
Examples:
Example Files:
Also See:
sprintf( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
290
sprintf(string, cstring, values...);
bytes=sprintf(string, cstring, values...)
string is an array of characters.
cstring is a constant string or an array of characters null terminated. Values are a
list of variables separated by commas.
Bytes is the number of bytes written to string.
This function operates like printf() except that the output is placed into the specified
string. The output string will be terminated with a null. No checking is done to ensure
the string is large enough for the data. See printf() for details on formatting.
All devices.
Nothing
char mystring[20];
long mylong;
mylong=1234;
sprintf(mystring,"<%lu>",mylong);
// mystring now has:
//
None
printf()
int i = 34;
spi_xfer(i);
// transfers the number 34 via SPI
int trans = 34, res;
res = spi_xfer(trans);
// transfers the number 34 via SPI
// also reads the number coming in from SPI
None
#USE SPI
< 1 2 3 4 > \0

Related parts for PCWHD IDE COMPILER