Print address in hexadecimal, or "NULL" if address is 0.

Synopsis

Declared in <bslim_printer.h>

void
printHexAddr(
    void const* address,
    char const* name) const;

Description

Write to the output stream supplied at construction the specified address in a hexadecimal format, if address is not 0, and print the string "NULL" otherwise, prefixed by the specified name if name is not 0. If spacesPerLevel() < 0, print on a single line. If spacesPerLevel() >= 0, indent by (absLevel() + 1) * spacesPerLevel() blank spaces.

Parameters

Name

Description

address

pointer whose hexadecimal value is printed

name

attribute name printed before the address; omitted if null

Created with MrDocs