ZCOM C I/F Library Routines

ZCOMLOG (3X)

EXAMPLE

#include

<zcom/zcomsys.h>

 

#include

<zcom/zcomcall.h>

 

uint32

error;

 

int32

msgno;

 

uint32

desc;

 

uint32

arg;

 

char

p1;

 

int

p2;

 

error

= 1730;

 

msgno

= 150; /* Msg text = "This is an error. P1 = %c P2 = %d".

 

*/

 

 

p1

= ’a’;

 

p2

= 37;

 

zcomlog (error, msgno, 2, ZCOM_AT_CHAR, p1, ZCOM_AT_INT, p2);

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/default.msg

Master message text file.

SEE ALSO

zcomlname(3x), zmlog(1)

 

Chapter 4

187