qread(3G)qread(3G)NAMEqread - reads the first entry in the event queue
C SPECIFICATION
long qread(data)
short *data;
PARAMETERS
data expects a pointer to the location that is to receive the data the
event queue.
FUNCTION RETURN VALUE
The returned function value is the identifier for the device read.
DESCRIPTION
When there is an entry in the queue, qread returns the device number of
the queue entry, writes the data of the entry into data, and removes the
entry from the queue.
If there is not an entry in the queue, qread will block and return when
an entry is made.
SEE ALSO
qreset, qtest
NOTE
This routine is available only in immediate mode.
Page 1