In article <[email protected]>,
Adriano Verardo <[email protected]> wrote:
>I'm trying to convert integers in text binary format by sprint(..., 
>"%b", i),
>but 8c issue a "format mismatch b INT" warning message.
>
>Can anyone kindly explain  to me my mistake ?
>Doesn't   "%b"  behave like the other integer  format specifications  ?

Sound like you may want %d, however, not sure what you're trying
to do, since dunno what you mean by text binary or if you were just
cutting corners with ... but run "man sprintf" and have a look.
-- 
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?

Reply via email to