function i4vec_width_test ( )

%*****************************************************************************80
%
%% I4VEC_WIDTH_TEST tests I4VEC_WIDTH.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 March 2016
%
%  Author:
%
%    John Burkardt
%
  n = 13;
  i4vec = [ 0, 1, 2, 3, 9, 10, 11, 99, 101, -1, -2, -3, -9 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4VEC_WIDTH_TEST\n' );
  fprintf ( 1, '  I4VEC_WIDTH determines the printing "width" of an I4VEC.\n' );

  i4vec_print ( n, i4vec, '  The vector' );

  w = i4vec_width ( n, i4vec );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The printing width is %d\n', w );
  
  return
end
