CloseComm

2.x

  int CloseComm(idComDev)    
  int idComDev; /* device to close, */  

The CloseComm function closes the specified communications device and frees any memory allocated for the device's transmission and receiving queues. All characters in the output queue are sent before the communications device is closed.

Parameters

idComDev

Specifies the device to be closed. The OpenComm function returns this value.

Return Value

The return value is zero if the function is successful. Otherwise, it is less than zero.

See Also

OpenComm