Overview
Features
Download
Documentation
Community
Add-Ons & Services

Is there a %p for Poco::format or poco_information_f1()?

Please post support and help requests here.

Is there a %p for Poco::format or poco_information_f1()?

Postby jnewell » 10 May 2011, 20:04

Is there a %p like in printf for Poco::format or poco_x_fx() logging?

If not what is the recommended practice for print void * addresses(casting)?

int x = 0;

void *p = &x;

std::string str = Poco::format("address = %lx", (unsigned long)p);

Regards,

Jim
jnewell
 
Posts: 7
Joined: 10 May 2011, 19:55

Re: Is there a %p for Poco::format or poco_information_f1()?

Postby jnewell » 13 Aug 2012, 00:50

The answer is no %p, but Poco::format("address=%?u, (UIntPtr)p) works for both 64 and 32 pointers.
Regards,
Jim
jnewell
 
Posts: 7
Joined: 10 May 2011, 19:55


Return to Support

Who is online

Users browsing this forum: killerbobjr and 1 guest