Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

SA_LOGOF

Close administration files and disconnect from FairCom DB.

Short Name

SA_LOGOF()

Type

System Administration

Declaration

NINT SA_LOGOF();

Description

The SA_LOGOF() function closes FairCom DB administration files and disconnects from FairCom DB.

Return

All server administration functions return a zero value to indicate success and a non-zero value (defined in cthelp.h) to indicate failure. In the case of failure, the global variable isam_err will be set to the FairCom DB error value. See c-tree Error Codes in the FairCom DB Programmer’s Reference Guide for a complete listing of error values.

Example

NINT rc;

TEXT auid[IDZ], apwd[PWZ], fpwd[PWZ], svrname[25];


if ((rc = SA_LOGON(auid, apwd, fpwd, svrname)) != 0)

printf("\nSA_LOGON error = %d", rc);

else {

DoAdmin();

SA_LOGOF();

}

Limitations

Requires SA_LOGON() call.

See also

SA_GROUP(), SA_FILES(), SA_LOGON(), SA_USERS()

TOCIndex