NAME

asciistring, fdasciidump, fdhexdump, fdread_asciidump, fdread_hexdump - file descriptor analogs of hexdump, et al

SYNOPSIS

char * asciistring ( char *memory, int l );
void fdasciidump ( int fd, char *memory, int l );
void fdhexdump ( int fd, void *memory, int l );
int fdread_asciidump ( int fd, char *memory, int l );
int fdread_hexdump ( int fd, char *memory, int l );

DESCRIPTION

asciistring returns a printable string corresponding to l bytes at address memory.

fdasciidump uses fdwrite to write the printable string from asciistring.

fdhexdump uses fdwrite to write the hexadecimal string from hexdump_string(3).

Both fdasciidump and fdhexdump must be followed with a call to fdflush(3) or fdclose(3) to write the internal fdwrite buffers.

fdread_asciidump and fdread_hexdump convert the string representations back to memory.

RETURN VALUES

fdread_asciidump and fdread_hexdump return the number of output bytes.

LIBRARY

$(STOCKLIBS)

ATTRIBUTES

MT-Safe

SEE ALSO

hexdump(3)

AUTHOR

Daniel Quinlan

Table of Contents
Antelope Release 4.8 Darwin 8.7.0 2006-09-20
Boulder Real Time Technologies, Inc For more information, contact support@brtt.com