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-8936D341-3368-4A0E-8350-03D22DA33D5D
Visible to Intel only — GUID: GUID-8936D341-3368-4A0E-8350-03D22DA33D5D
SPORT_PURGE
Serial Port I/O Function: Executes the Windows* API communications function PurgeComm on the specified port. This routine is only available for Windows.
Module
USE IFPORT
result = SPORT_PURGE (port,function)
port |
(Input) Integer. The port number. |
function |
(Input) INTEGER(4). The function for PurgeComm (see the Windows* documentation). |
Results
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.
Example
USE IFWINTY USE IFPORT INTEGER(4) iresult iresult = SPORT_PURGE( 2, (PURGE_TXABORT .or. PURGE_RXABORT) ) END