Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-52629D1C-AA74-4D60-ACBA-6500D72D589F
Visible to Intel only — GUID: GUID-52629D1C-AA74-4D60-ACBA-6500D72D589F
SPORT_CANCEL_IO
Serial Port I/O Function: Cancels any I/O in progress to the specified port. This routine is only available for Windows.
Module
USE IFPORT
result = SPORT_CANCEL_IO (port)
port |
(Input) Integer. The port number. |
Results
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows* error value.
This call also kills the thread that keeps an outstanding read operation to the serial port. This call must be done before any of the port characteristics are modified.
Example
USE IFPORT INTEGER(4) iresult iresult = SPORT_CANCEL_IO( 2 ) END