HP UX 11i v1 I/O Cards manual Return Value

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 156
Image 156

ZCOM C I/F Library Routines

PTFIND (3X)

RETURN VALUE

Routine ptfind returns 0 if successful. Otherwise, if the physical terminal

 

is not found, ZENOTM (-75)is returned.

EXAMPLE

#include

<zcom/zcomsys.h>

 

#include

<zcom/zcomcall.h>

 

int32

ierr;

 

zaddr_type

zaddr;

 

zskey_type

zskey;

 

zptt_type

zptt;

 

int32

len;

if (ierr = ptfind (&zaddr, &zskey, &zptt, len)) { /* error return code */

}

else {

/* good return code */

}

FILES

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

156

Chapter 4

Page 156
Image 156
HP UX 11i v1 I/O Cards manual Return Value