HP UX 11i v1 I/O Cards manual 168

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 168
Image 168

ZCOM C I/F Library Routines

ZCOMERROR (3X)

PARAMETERS

err Error number.

NOTES

This routine reads a message file for the error message text. It uses the file zerrmsg.msg in /opt/acc/msg (ZCOM_MESSAGE_PATH). If not found, it uses the default message file default.msg.

RETURN VALUE

Routine zcomerror returns a character string corresponding to the error number passed in as a parameter (err).

EXAMPLE

#include

<zcom/zcomsys.h>

 

#include

<zcom/zcomcall.h>

 

char

*errmsg; /* Returned message string */

 

int32

err;

errmsg = zcomerror (err);

 

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

/opt/acc/msg/zstatmsg.msg

ZCOM status messages.

/opt/acc/msg/default.msg

Master message text file.

168

Chapter 4

Page 168
Image 168
HP UX 11i v1 I/O Cards manual 168