function ierror = y_check_english ( y )

%*****************************************************************************80
%
%% y_check_english() checks an English year.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 March 2013
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer Y, the year, which must not be 0.
%
%  Output:
%
%    integer IERROR, is 0 if Y is legal, and 1 otherwise.
%
  if ( y ~= 0 )
    ierror = 0;
  else
    ierror = 1;
  end

  return
end
