From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 7 Aug 2009 08:37:08 +0000 From: comeau@panix.com (Greg Comeau) Message-ID: References: <4A7B6EF7.6090305@tecmav.com> Subject: Re: [9fans] binary sprint format Topicbox-Message-UUID: 3c146724-ead5-11e9-9d60-3106f5b1d025 In article <4A7B6EF7.6090305@tecmav.com>, Adriano Verardo 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?