Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

addopt(2)

readopt(2)

optoverhead(2)

INITOPT(2)

Series 300 and 800 Only

NAME

initopt() − initializes the NetIPC opt parameter so that arguments can be added

SYNOPSIS

#include <sys/ns_ipc.h>

void initopt (opt,optnumarguments,error);
short int opt[], optnumarguments, *error;

DESCRIPTION

The initopt call must be used to intitialize the opt parameter prior to adding arguments to it with addopt.  The optnumarguments parameter specifies how many arguments can be placed in the opt parameter.  For example, if zero is specified, no arguments can be added to the opt parameter; if three is specified, three arguments must be added.  Refer to the NetIPC programmer’s manual for your system for a complete description of the opt parameter. 
 
This routine can be linked into a program by giving the -lnsipc option to cc(1) or ld(1). 

PARAMETERS

opt (output parameter) The opt parameter to be initialized. 

optnumarguments (input parameter) The number of arguments that will be placed in the opt parameter.  If this parameter is zero, the opt parameter will be initialized to contain zero arguments. 

error (output parameter) The error code returned; zero or NSR_NO_ERROR if no error.  Refer to "Diagnostics" below for more information. 

RETURNS

None.  Errors are returned in the error parameter. 

AUTHOR

HP. 

SEE ALSO

addopt(2), readopt(2), optoverhead(2). 

DIAGNOSTICS

[NSR_NO_ERROR] The call was successful. 

[NSR_xxxx] Refer to the error codes listed in the NetIPC programmer’s manual for your system. 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026