Description-
Returns transmit buffer size.
Syntax-
count = TransmitBufferSize(port);
On Entry-
int port;
Port previously opened with InitializePort() or OpenComPort().
On Exit-
int count;
Transmit buffer size.
else
-1 If port was not initialized.
See Also-
BytesInTransmitBuffer()
IsTransmitBufferEmpty()
SpaceInTransmitBuffer()
Example-
#include "comm.h"
int count; int port=0;
if ((count = TransmitBufferSize(port)) == -1) { printf("Port was not initialized\n");
/* Take remedial action */ } else printf("Number of bytes =>%d\n",count);