On Wed, Jun 11, 2003 at 11:21:35PM +0100, Philip Martin wrote: > os << std::setbase(16) << 132;
Ah OK, I was also pointed to: os << std::setw(4) << std::hex << 132 << std::dec; Unfortunately, that will make the code much longer and much less readable. And there are also uses of ostrstream::vform(), to apply a format passed by argument to other arguments. I guess I'll have to fallback to vsnprintf() for this, with either the inherent problems of string-length management. And I thought C++ was a high-level language :( Thanks much for your help, -- Yann Dirson <[EMAIL PROTECTED]> | Why make M$-Bill richer & richer ? Debian-related: <[EMAIL PROTECTED]> | Support Debian GNU/Linux: Pro: <[EMAIL PROTECTED]> | Freedom, Power, Stability, Gratuity http://ydirson.free.fr/ | Check <http://www.debian.org/>