function cportpurge;
%function stat=cportpurge(H) discards all characters from the output or 
%input buffer of a previously opened communications port. It also 
%terminates pending read or write operations on the port. The paremeters
%are:
%
%H    - The port handle returned by cportopen.
%stat - 1 for success and 0 for failure.

% Written by Eyal Doron, July 1999
 

