SW006013 Microchip Technology, SW006013 Datasheet - Page 79

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
printf (Continued)
putc
Description:
Include:
Prototype:
Arguments:
Return Value:
Remarks:
Example:
}
Output:
-4
0012
0x1c
1.100000E+20
-3.35
0.02
Puts a character to the stream.
<stdio.h>
int putc(int c, FILE *stream);
c
stream
Returns the character or EOF if an error occurs or end-of-file is
reached.
putc is the same as the function fputc.
#include <stdio.h> /* for putc, EOF, stdout */
int main(void)
{
for (y = buf; (x != EOF) && (*y != '\0'); y++)
}
Output:
T|h|i|s| |i|s| |t|e|x|t|
|
/* print a number converted to hexadecimal
/* format with a 0x prefix.
printf("%#x\n", 28);
/* print a float in scientific notation
printf("%E\n", 1.1e20);
/* print a float with 2 fraction digits
printf("%.2f\n", -3.346);
/* print a long float with %E, %e, or %f
/* whichever is the shortest version
printf("%Lg\n", .02L);
a
char *y;
char buf[] = "This is text\n";
int x;
x = 0;
{
}
|
x = putc(*y, stdout);
putc('|', stdout);
4
character to be written
pointer to FILE structure
DS51456E-page 75
*/
*/
*/
*/
*/
*/

Related parts for SW006013