iclose

  • Supported sessions: device, interface, commander

C Syntax

#include <sicl.h>
int iclose (id);
INST id;

Visual Basic Syntax

Function iclose (ByVal id As Integer)

Description

Once you no longer need a session, close it using the iclose function. This function closes a SICL session. After calling this function, the value in the id parameter is no longer a valid session identifier and cannot be used again.

Notes

Do not call iclose from an SRQ or interrupt handler, as it may cause unpredictable behavior.

Return Value

For C programs, this function returns zero (0) if successful, or a non-zero error number if an error occurs. For Visual Basic programs, no error number is returned. Instead, the global Err variable is set if an error occurs.

See Also

iopen