From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Fri, 7 Aug 2009 08:52:03 -0400 To: comeau@comeaucomputing.com, 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] binary sprint format Topicbox-Message-UUID: 3cd7c688-ead5-11e9-9d60-3106f5b1d025 On Fri Aug 7 04:44:37 EDT 2009, comeau@panix.com wrote: > 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. if only the man page had been read and corners had not been cut ... here's what was missed: - the message (http://9fans.net/archive/2009/08/191) explaining the solution which was sent several hrs earlier, - that he was using sprint, not sprintf from stdio, - that %b is a legitimate sprint verb. - erik