(
Char
AUXiliary
Input
Status)
WORD Cauxis( VOID )
Cauxis() indicates whether
GemDos handle 2 (normally device '
aux:') has at least one character waiting.
Opcode
18 (0x12)
Availability
Binding
move.w #$12,-(sp)
trap #1
addq.l #2,sp
Return Value
The return value will be DEV_READY (-1) if at least one character is available for reading or DEV_BUSY (0) if not.
Caveats
When using this function while its handle is redirected, an end-of-file condition will hang the system.
GemDos version 0.30 and all
MiNT versions correct this bug.
MiNT returns
MINT_EOF (
0xFF1A) when the end-of-file is reached.
In addition, some 'C' compilers use this handle as a standard error device. It is therefore advisable to use
Bconstat().
See Also