NetIPC 3000/XL Programmer's Reference Manual (5958-8600)

Table Of Contents
68 Chapter3
NetIPC Intrinsics
INITOPT
INITOPT
Initializes the
opt
parameter so that entries may be added.
Syntax
INITOPT (
opt
,
eventualentries
,[
result
])
Parameters
opt
(output)
Record or byte array, by reference. The
opt
parameter which is to be initialized. Refer to “Common
Parameters” for more information on the structure of
this parameter.
eventualentries
(input)
16-bit integer, by value. The number of option entries
that are to be placed in the
opt
parameter.
result
(output)
16-bit integer, by reference. The error code
returned; zero if no error.
Description
The INITOPT intrinsic initializes the length and number-of-entries
fields (that is, the first 4 bytes) of the
opt
parameter. This must be done
before options are added to the parameter by means of the ADDOPT
intrinsic.
Condition codes returned by this intrinsic are:
CCE — Succeeded.
CCL — Failed because of a user error.
CCG — Not returned by this intrinsic.
This intrinsic can be called in split stack mode.