function c = lon_char ( i )

%*****************************************************************************80
%
%% LON_CHAR returns a character for negative or positive longitude.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    19 May 2016
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer I, is negative for negative longitude, and 
%    positive for positive longitude.
%
%    Output, character LON_CHAR, is 'W' for negative longitude, and
%    'E' for positive longitude.
%
  if ( i < 0 )
    c = 'W';
  elseif ( 0 < i )
    c = 'E';
  else
    c = '?';
  end

  return
end