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 FunctionsGETCHARSynopsis#include int getchar (void)DescriptionThe getchar() routine is a getc(stdin) operation. It is a macro defined in stdio.h. Note that undernormal circumstances getchar() will NOT return unless a carriage return has been typed on theconsole. To get a single character immediately from the console, use the function getch().Example#include voidmain (void){int c;}while((c = getchar()) != EOF)putchar(c);See Alsogetc(), fgetc(), freopen(), fclose()NoteThis routine is not usable in a ROM based system.149

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

Saved successfully!

Ooh no, something went wrong!