9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Federico G. Benavento" <benavento@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] writing to ctl using fprint and write
Date: Thu, 29 Jul 2010 20:42:41 -0300	[thread overview]
Message-ID: <AANLkTimYQ_A=iUUWCU9yTT_OJ+Q5C_s_hWi7A9Kx_iws@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimNik3SKiSd8bR2gtcwfXzzMPAin_mN6UiD9Aiz@mail.gmail.com>

sorry, but I didn't get the point

On Thu, Jul 29, 2010 at 12:11 PM, David Leimbach <leimy2k@gmail.com> wrote:
>
>
> On Thu, Jul 29, 2010 at 8:04 AM, erik quanstrom <quanstro@quanstro.net>
> wrote:
>>
>> > Thanks Erik, Sape, and Skip.  That was such a STUPID error, and I thank
>> > you all for the extra eyes.  I think it is time for a break and a bowl
>> > of
>> > tea...
>>
>> relax.  not stupid, subtle.  it takes vigilance to keep
>> sizeof, nelem, strlen, and the number of characters
>> straight.
>>
>> - erik
>>
>
> And you *can* use sizeof on arrays :-).
> Well at least in ANSI/ISO C.  Haven't tried this on plan 9.  :-)
> On my mac I get 6 and 8.
> #include <stdio.h>
> char blah [] = "Hello";
> char * blah2 = "There";
> int main  () {
>         printf("sizeof blah: %ld\n", sizeof(blah));
>         printf("sizeof blah2: %ld\n", sizeof(blah2));
> }
>
>



-- 
Federico G. Benavento



  reply	other threads:[~2010-07-29 23:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29 12:02 EBo
2010-07-29 12:06 ` erik quanstrom
2010-07-29 13:21   ` EBo
2010-07-29 15:04     ` erik quanstrom
2010-07-29 15:11       ` David Leimbach
2010-07-29 23:42         ` Federico G. Benavento [this message]
2010-07-29 15:18       ` Brian L. Stuart
2010-07-29 15:27       ` EBo
2010-07-29 12:07 ` Skip Tavakkolian
2010-07-29 12:12 ` Sape Mullender

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='AANLkTimYQ_A=iUUWCU9yTT_OJ+Q5C_s_hWi7A9Kx_iws@mail.gmail.com' \
    --to=benavento@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).