Oma_Ot_Reader_Detach()
Abstract
Detaches from an OT reader.
Syntax
Oma_Ot_Reader_Detach (ot_reader_ptr)
| Argument | Type | Description |
|---|---|---|
ot_reader_ptr |
OmaT_Ot_Reader * |
OT file reader to be detached. |
Return Type
PrgT_Compcode
PrgC_Compcode_Failure if the reader is not defined; PrgC_Compcode_Success otherwise.
Header
oma_ot.h
Details
Use this function to detach an OT reader from its file when you are not actively reading data, but want to keep a reference to the reader. If the file was attached, the attach count is decremented. The file will be closed when the attach count becomes zero. However, the OT reader will reopen it automatically as needed if you read more data in the future. Detaching the OT reader from its file reduces the probability that the computer will run out of descriptors.