From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A7B82FC.7020807@tecmav.com> Date: Fri, 7 Aug 2009 03:27:24 +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: <0d8d213d8d2611541f18dce3ecf5466c@quanstro.net> In-Reply-To: <0d8d213d8d2611541f18dce3ecf5466c@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: 3b3bcc5c-ead5-11e9-9d60-3106f5b1d025 erik quanstrom wrote: >>> 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. >> > > perhaps you have not included everything necessary? > > ; cat fmtb.c > #include > #include > > void > main(void) > { > print("%b\n", 16); > exits(""); > } > > ; 8c -FVTw fmtb.c && 8l fmtb.8 && 8.out > 10000 > > - erik > > Your example works on my machine too. What could be the reason why 8c complains about sprint(buf, "%b", 16) in a driver whose includes are: #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" Am I using them in a wrong way ? adriano