9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] binary sprint format
@ 2009-08-07  0:01 Adriano Verardo
  2009-08-07  0:08 ` erik quanstrom
  2009-08-07  8:37 ` Greg Comeau
  0 siblings, 2 replies; 10+ messages in thread
From: Adriano Verardo @ 2009-08-07  0:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

adriano





^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9fans] binary sprint format
@ 2009-08-07  2:15 Akshat Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Akshat Kumar @ 2009-08-07  2:15 UTC (permalink / raw)
  To: 9fans

> #include "u.h"
> #include "../port/lib.h"
> #include "mem.h"
> #include "dat.h"
> #include "fns.h"

Perhaps libc.h?


ak



^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com>]

end of thread, other threads:[~2009-08-07 12:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07  0:01 [9fans] binary sprint format Adriano Verardo
2009-08-07  0:08 ` erik quanstrom
2009-08-07  0:30   ` Adriano Verardo
2009-08-07  0:34     ` erik quanstrom
2009-08-07  1:27       ` Adriano Verardo
2009-08-07  8:37       ` kjs
2009-08-07  8:37 ` Greg Comeau
2009-08-07 12:52   ` erik quanstrom
2009-08-07  2:15 Akshat Kumar
     [not found] <634008374f96d39b2953843bc63d67ff@plan9.bell-labs.com>
2009-08-07  3:47 ` Adriano Verardo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).