11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Library FunctionsPUTCHSynopsis#include void putch (char c)DescriptionThe putch() function outputs the character c to the console screen, prepending a carriage return ifthe character is a newline. In a CP/M or MS-DOS system this will use one of the system I/O calls.In an embedded system this routine, and associated others, will be defined in a hardware dependentway. The standard putch() routines in the embedded library interface either to a serial port or to theLucifer Debugger.Example#include char * x = "This is a string";voidmain (void){char * cp;}cp = x;while(*x)putch(*x++);putch(’\n’);See Alsocgets(), cputs(), getch(), getche()179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!