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 FunctionsKBHITSynopsis#include int kbhit (void)DescriptionThis function returns 1 if a character has been pressed on the console keyboard, 0 otherwise. Normallythe character would then be read via getch().Example#include voidmain (void){int i;}while(!kbhit()) {cputs("I’m waiting..");for(i = 0 ; i != 1000 ; i++)continue;}See Alsogetch(), getche()Return ValueReturns one if a character has been pressed on the console keyboard, zero otherwise.155

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

Saved successfully!

Ooh no, something went wrong!