/*====================================================================*
 *
 *   char * hexstring ( char buffer [], size_t length, const void * memory, size_t extent);
 *
 *   memory.h
 *
 *   decode a memory region into a hexadecimal character buffer and 
 *   return the buffer address;
 *
 *   allow three string characters for each memory byte; this means
 *   that the buffer must hold at least three characters or nothing
 *   will be decoded; 
 *
 *.  Motley Tools by Charles Maier <cmaier@cmassoc.net>;
 *:  Published 2005 by Charles Maier Associates Limited;
 *;  Released under the GNU General Public Licence v2 and later;
 *
 *--------------------------------------------------------------------*/

#ifndef HEXSTRING_SOURCE
#define HEXSTRING_SOURCE

#include <stdint.h>

#include "../tools/memory.h"

char * hexstring ( char buffer [], size_t length, const void * memory, size_t extent) 

{
	hexdecode (memory, extent, buffer, length);
	return ((char *)(buffer));
}

#endif