From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Fri, 7 Aug 2009 08:37:27 +0000 From: kjs Message-ID: <2fe39b03-a14d-4b07-8397-3b4ff1faffeb@g6g2000vbr.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <0d8d213d8d2611541f18dce3ecf5466c@quanstro.net> Subject: Re: [9fans] binary sprint format Topicbox-Message-UUID: 3c1a455e-ead5-11e9-9d60-3106f5b1d025 On Aug 6, 7:31 pm, a.vera...@tecmav.com (Adriano Verardo) wrote: > 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 uhm ... libc.h