function cportreset;
%function [stat,ErrStr]=cportreset(H) resets a previously opened communications
%port. It recovers any error strings, discards all characters from the output 
%or input buffer of a  port, and terminates pending read or write operations on 
%the port. The parameters are:
%
%H      - The port handle returned by cportopen.
%stat   - 1 for success and 0 for failure (optional).
%ErrStr - If a device error occurred on a previous command, this string
%         contains a brief description (optional).

% Written by Eyal Doron, July 1999
 
error('CPORTRESET is implemented in a MEX file.');

