DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

ev_read(S)


ev_read -- read the next event in the queue

Syntax

cc . . . -levent

#include  <sys/types.h>
#include  <sys/param.h>
#include  <sys/sysmacros.h>
#include  <sys/page.h>
#include  <sys/event.h>
#include  <mouse.h>

EVENT* ev_read ()

Description

ev_read returns a pointer to the next event in the queue or NULL if the queue is empty. Multiple calls to this routine return the same pointer until ev_pop is called.

An error occurs if this routine is called from a program without an open event queue.

Diagnostics

This routine returns NULL if there is no event to read or if there is not an open event queue.

See also

ev_block(S), ev_close(S), ev_count(S), ev_flush(S), ev_getdev(S), ev_getemask(S), ev_gindev(S), ev_init(S), ev_open(S), ev_pop(S), ev_resume(S), ev_setemask(S), ev_suspend(S)

Standards conformance

ev_read is not part of any currently supported standard; it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003