ZCOM C I/F Library Routines

ZPTUP (3X)

PARAMETERS

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.

offse Byte offset within the physical terminal table from where the

tupdate should begin.

RETURN VALUE Routine zptup returns 0 if successful. Otherwise, a non-zeroerror 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

/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).

288

Chapter 4

Page 288
Image 288
HP Advanced Communications Controllers (ACC) manual 288