Intel® Fortran Compiler 18.0 Developer Guide and Reference
Serial Port I/O Function: Executes the Windows* API communications function PurgeComm on the specified port.
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). |
The result type is INTEGER(4). The result is zero if successful; otherwise, a Windows error value.
USE IFWINTY
USE IFPORT
INTEGER(4) iresult
iresult = SPORT_PURGE( 2, (PURGE_TXABORT .or. PURGE_RXABORT) )
END