Re: [RFC] convert a host address to a string

Kai Tietz
2009-01-08T11:02:14Z

Joel Brobecker <brobecker@adacore.com> wrote on 08.01.2009 11:48:00:

> > Why not simply use stdint.h (gstdint.h) for this?
>
> Could you give more details? I'm not sure what you mean exactly.
>
> Thanks,
> --
> Joel
>

By it you can use standard ISO type intptr_t. And I missed to add
inttypes.h.
By this you could simply use PRIXPTR for printing hex pointer failues.

E.g.
fprint (fp, "0x%" PRIXPTR, (intptr_t) address);

Cheers,
Kai

| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.