chkch


Checks to see if a character is ready to be received from the console serial port. If no character is available, a zero (0) is returned, otherwise the character is read and its value is passed back.

int chkch (void)

Parameters


N/A

Return Value


int - return 0 if no character exists in serial buffer. Return the character otherwise.

Remarks


The  CARRIAGE  RETURN  character  (0x0D)  will  be translated into a NEWLINE (0x0A) for compatibility with C.

Requirements


bipomlib.h

Example


N/A

Library


SDCC Library Reference