_DUMPB - dump an array of bytes.
Usage:
void _dumpb(FILE *u, void *p, size_t bytes
[, char *fmt, int groups, int gsize, int origin]);
Where:
- FILE *u;
- specifies the stream where you want the dump output
written.
- void *p;
- points to the first byte whose contents you want to dump.
- size_t bytes;
- specifies the number of bytes you want to dump.
- char *fmt;
- points to a string of format option characters. Multiple
dump formats can be selected. The following are currently
supported:
- a
- dumps as ASCII. Unprintable characters are
printed as spaces.
- o
- dumps in octal.
- x
- dumps in hex.
- *
- suppresses duplicate lines. The last line is
never suppressed.
If omitted, the default is "o*".
- int groups;
- specifies the number of groups to display per line. The
default value is 4.
- int gsize;
- specifies the number of bytes in a group. Each group is
separated by a space. The default is 4 so that the data
appears in word groupings.
- int origin;
- is a value added to the offset address printed at the
left of the dump data.
Description:
"_dumpb" can display an array of bytes in a variety
of formats. It is primarily used in debugging and error
diagnosis.
See Also:
- expl c lib _dumpw
- for a routine that displays word arrays.
Copyright © 1996, Thinkage Ltd.