function x = chvec_reverse ( n, x )

%*****************************************************************************80
%
%% chvec_reverse() reverses the elements of a character vector.
%
%  Example:
%
%    Input:
%
%      N = 4, X = ( 'L', 'I', 'V', 'E' ).
%
%    Output:
%
%      X = ( 'E', 'V', 'I', 'L' ).
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of entries in the array.
%
%    character X(N), the array to be reversed.
%
%  Output:
%
%    character X(N), the reversed array.
%
  x(1:n) = x(n:-1:1);

  return
end
