NAME

hex2mem, mem2hex - convert between ascii strings of hex digits and binary

SYNOPSIS

int hex2mem ( char *hex, void *vmem );
void mem2hex ( void *vmem, int n, char *s );

DESCRIPTION

hex2mem converts an input null-terminated string of ascii hex digits into the corresponding binary representation. mem2hex converts a n bytes of memory beginning at vmem to the corresponding hexadecimal ascii string.

RETURN VALUES

hex2mem returns the number of characters converted, or -1 if the number of characters was not a even number of bytes.

LIBRARY

$(STOCKLIBS)

ATTRIBUTES

MT-Safe

AUTHOR

Daniel Quinlan

Table of Contents
Antelope Release 4.7 Darwin 7.9.0 2005-07-18
Boulder Real Time Technologies, Inc For more information, contact support@brtt.com