From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A7B75A7.50709@tecmav.com> Date: Fri, 7 Aug 2009 02:30:31 +0200 From: Adriano Verardo User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: <7fe7842cf842096c7c9c0456c435f519@quanstro.net> In-Reply-To: <7fe7842cf842096c7c9c0456c435f519@quanstro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [9fans] binary sprint format Topicbox-Message-UUID: 3b12daa4-ead5-11e9-9d60-3106f5b1d025 erik quanstrom wrote: > On Thu Aug 6 20:03:20 EDT 2009, a.verardo@tecmav.com wrote: > >> Hi, all >> >> 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 ? >> >> Thanks in advance >> > > i believe you need to update your libc.h. you need pragmas for > the "b" format, which were added 2007/0108. > > - erik > > > > I'm using a distribution downloaded about 2 months ago. The machine has been installed from scratch. adriano