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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsGETCH, GETCHESynopsis#include char getch (void)char getche (void)DescriptionThe getch() function reads a single character from the console keyboard and returns it without echoing.The getche() function is similar but does echo the character typed.In an embedded system, the source of characters is defined by the particular routines supplied.By default, the library contains a version of getch() that will interface to the Lucifer Debugger. Theuser should supply an appropriate routine if another source is desired, e.g. a serial port.The module getch.c in the SOURCES directory contains model versions of all the console I/Oroutines. Other modules may also be supplied, e.g. ser180.c has routines for the serial port in aZ180.Example#include voidmain (void){char c;}while((c = getche()) != ’\n’)continue;See Alsocgets(), cputs(), ungetch()148

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

Saved successfully!

Ooh no, something went wrong!