From: kjs <ksolowoniuk@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] binary sprint format
Date: Fri, 7 Aug 2009 08:37:27 +0000 [thread overview]
Message-ID: <2fe39b03-a14d-4b07-8397-3b4ff1faffeb@g6g2000vbr.googlegroups.com> (raw)
In-Reply-To: <0d8d213d8d2611541f18dce3ecf5466c@quanstro.net>
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
next prev parent reply other threads:[~2009-08-07 8:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 0:01 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2fe39b03-a14d-4b07-8397-3b4ff1faffeb@g6g2000vbr.googlegroups.com \
--to=ksolowoniuk@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).