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 <u.h> > > #include <libc.h> > > > 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