function cportgetchar;
%function Params[ch,err]=cportstate(H,nchar) retrieves characters from a 
%previously opened serial or parallel port. The parameters are:
%
%Input:
%------
%  H     - The port handle returned by cportopen.
%  nchar - The number of characters to read. If omitted, the default is
%          nchar = 1.
%Output:
%-------
%  ch    - A character array containing the retreived characters.
%  err   - Optional error flag, 1 for success and 0 for failure.
%

% Written by Eyal Doron, July 1999

error('CPORTGETCHAR is implemented in a MEX file.');

