ACC X.25 Protocol User's Guide
X.25 Application Programming
X25STAT (3X)
Chapter 4 85
PAR A ME TER S : req The request code associated with the terminal
operation. This will be returned either with a zread call
for a type 6 (ZCOM_MSTYPE_RSLT) or 14
(ZCOM_MSTYPE_RSRT) message
(zmhd.mrq.mrqcode), or will be known from the call
context for a mode 8 zsend, zcntl, or zport call.
stat Status code (ZCOM error code if < 0).
NOTES This routine reads a message file for the status message text. It uses the
file zstatmsg.msg in /opt/acc/msg (ZCOM_MESSAGE_PATH). If not
found, it uses the default message file default.msg.
RETURN VALUE Routine x25stat returns a null-terminated character string, which
consists of either a ZCOM error or X.25 status message.
EXAMPLE
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h>
char *message; /* Returned message string */
int32 req;
int32 stat;
message = x25stat (req, stat);
FILES /opt/acc/include/zcom/zcomsys.h ZCOM subsystem 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).










