COMM-DRV/Lib: ModemHangup() Hangup modem connection

Description-

Hangs up the modem. This function moves the modem from the online state to the command state.

Syntax-

stat = ModemHangup(port);

On Entry-

int port;

Port previously opened with InitializePort() or OpenComPort().

On Exit-

int stat;

0 If hang-up is successful.

On Exit-

int stat;

0 If

See Also-

Dial()
ModemAttention()
ModemAnswerMode()
ModemConnect()
ModemGetCarrierSpeed()
ModemGetConnectSpeed()
ModemInit()
ModemModifyString()

Example-

#include "comm.h"
int port=0;
 int stat;
if ((stat = ModemHangup(port)) != 0)
 {
 printf("Error hanging up modem\n");
/* Take remedial action */
 }