qread(3G) qread(3G)
qread - reads the first entry in the event queue
long qread(data)
short *data;
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.
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.
qreset, qtest
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|