//-----------------------------------------------------------------------------
// Copyright © 2004 - Philip Howard - All rights reserved
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307	 USA
//-----------------------------------------------------------------------------
// package	libh/io
// homepage	http://libh.slashusr.org/
//-----------------------------------------------------------------------------
// author	Philip Howard
// email	libh at ipal dot org
// homepage	http://phil.ipal.org/
//-----------------------------------------------------------------------------
// This file is best viewed using a fixed spaced font such as Courier
// and in a display at least 120 columns wide.
//-----------------------------------------------------------------------------

#include <stdio.h>

#include "io_lib.h"

__FMACRO_BEGIN__
//-----------------------------------------------------------------------------
// macro	eput_bytes_str_xx
//
// purpose	Output bytes, escaped as needed, up to zero termination,
//		to stderr.
//
// arguments	1 (const char *) point to beginning of bytes
//
// returns	(int) 0
//-----------------------------------------------------------------------------
#define eput_bytes_str_xx(p) fput_bytes_len_xx((p),~(size_t)0,(stderr))

__FMACRO_END__

__FMACRO_BEGIN__
//-----------------------------------------------------------------------------
// macro	put_bytes_str_xx
//
// purpose	Output bytes, escaped as needed, up to zero termination,
//		to stdout.
//
// arguments	1 (const char *) point to beginning of bytes
//
// returns	(int) 0
//-----------------------------------------------------------------------------
#define put_bytes_str_xx(p) fput_bytes_len_xx((p),~(size_t)0,(stdout))

__FMACRO_END__

__FMACRO_BEGIN__
//-----------------------------------------------------------------------------
// macro	fput_bytes_str_xx
//
// purpose	Output bytes, escaped as needed, up to zero termination,
//		to the specified open file.
//
// arguments	1 (const char *) point to beginning of bytes
//		2 (FILE *) file to output to
//
// returns	(int) total characters output (extra for escaped)
//-----------------------------------------------------------------------------
#define fput_bytes_str_xx(p,f) fput_bytes_len_xx((p),~(size_t)0,(f))

__FMACRO_END__

