Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

ctGetSystemErrorCode

Declaration

COUNT ctGetSystemErrorCode()

Description

Returns the current system I/O code. Call this function instead of directly accessing the sysiocod global c-tree variable. This value is particularly important with API calls that access filesystem I/O and errors specific to operating systems can be returned.

Return Values

The return value is an operating specific error code. Consult your OS documentation for specific values and meanings.

Example


NINT rc = 0


rc = CreateIFile(&my_ifil);

if ( rc )

printf("Error %d in creating file. Check I/O code %d\n", rc, ctGetSystemErrorCode() );

See Also

  • ctGetUserErrorCode()
  • ctGetIsamErrorCode()
  • ctGetIsamFileNbr()

TOCIndex