ACC Programmer's Reference Guide

Chapter 4 263
ZCOM C I/F Library Routines
ZPTUP (3X)
PARAMETERS
RETURN VALUE Routine zptup returns 0 if successfu l. Otherw ise, 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
#include <zcom/zcomsys.h>
#include <zcom/zcomcall.h>
int32 ierr;
zaddr_type zaddr;
char ibuf[size]; /* where size is user-determined; must be >= len */
int32 len;
int32 offset;
if (ierr = zptup (&zaddr, ibuf, len, offset)) {
/* error return code */
}
else {
/* good return code */
}
FILES
zap ZCOM address of the physical terminal table to update.
ibuf Data buffer holding the information to place into the PTT.
len Number of bytes of data to copy from ibuf into the PTT.
offset Byte offset within the physical terminal table from where the update
should begin.
/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).