_DUMPW - dump an array of words.
Usage:
void _dumpw(FILE *u, void *p, size_t words
[, char *fmt, int linelen, int origin]);
Where:
- FILE *u;
- specifies the stream where you want the dump output written.
- void *p;
- points to the first word whose contents you want to dump.
This must point to a word boundary.
- size_t words;
- specifies the number of words 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 each word as four ASCII characters.
Unprintable characters are printed as spaces.
- d
- dumps words as signed decimal numbers.
- f
- dumps words as single precision floating point numbers.
- o
- dumps in octal.
- x
- dumps in hex.
- *
- suppresses duplicate lines.
The last line is never suppressed.
If omitted, the default is "o*".
- int linelen;
- specifies the number of words to display per line.
The default value is 4.
- int origin;
- is a value added to the offset address printed at the left of the
dump data.
Description:
"_dumpw" can display an array of words (long ints) in a variety of formats.
It is primarily used in debugging and error diagnosis.
See Also:
- expl c lib _dumpb
- for a routine that displays bytes individually.
Copyright © 2000, Thinkage Ltd.