ACC Programmer's Reference Guide

Chapter 4 265
ZCOM C I/F Library Routines
ZQMVE (3X)
PARAMETERS
RETURN VALUE Routine zqmve returns 0 if successful. Otherwise, a non-zero error code
is returned. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM
error codes and their meanings.
EXAMPLE
Example 1:
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h>
int32 ierr;
zaddr_type zaddr;
zaddr_type daddr;
if (ierr = zqmve (&zaddr, &daddr)) {
/* error return code */
}
else {
/* good return code */
}
Example 2: - (how to flush)
while(zqmve(&zaddr, NULL) == NULL);
FILES
zap ZCOM address from which to get the message.
dzap Destination ZCOM address (if NULL, then the message will be flushed).
/opt/acc/include/zcom/zcomsys.h ZCOM system general include file,
containing data types, data structures,
constants, error codes, masks, etc. Note that
this must be the first include file before any
other ZCOM include files.
/opt/acc/include/zcom/zcomcall.h ZCOM routine function prototypes
(requires ANSI C compilation).