sorry, but I didn't get the point
On Thu, Jul 29, 2010 at 12:11 PM, David Leimbach wrote:
>
>
> On Thu, Jul 29, 2010 at 8:04 AM, erik quanstrom
> 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 brea
> relax. not stupid, subtle. it takes vigilance to keep
> sizeof, nelem, strlen, and the number of characters
> straight.
I was not offended or anything. I spent WAY to much time missing on that
one before asking for another set of eyes. I just felt a bit foolish for
missing something that si
> > 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.
On Thu, Jul 29, 2010 at 8:04 AM, erik quanstrom 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, s
> 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
>> n = fprint(ctl, ts);
>>
>> succeeds, while
>>
>> n = write(ctl,ts,sizeof(ts));
>>
>> fails.
>
> sizeof(ts) == 4 or 8, depending on the arch.
> you wish strlen(ts).
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 fo
> I'm working on some regression testing for my GSoC project and am trying
> to understand why
>
> ctl = open(path("ctl"),ORDWR|OAPPEND);
> ts = "chatty9p 1"; // or some other message
>
> n = fprint(ctl, ts);
>
> succeeds, while
>
> n = write(ctl,ts,sizeof(ts));
>
> fails.
>
> Can someon
> n = fprint(ctl, ts);
>
> succeeds, while
>
> n = write(ctl,ts,sizeof(ts));
>
> fails.
sizeof(ts) == 4 or 8, depending on the arch.
you wish strlen(ts).
- erik
I'm working on some regression testing for my GSoC project and am trying
to understand why
ctl = open(path("ctl"),ORDWR|OAPPEND);
ts = "chatty9p 1"; // or some other message
n = fprint(ctl, ts);
succeeds, while
n = write(ctl,ts,sizeof(ts));
fails.
Can someone explain?
EBo --
how is ts declared?
> I'm working on some regression testing for my GSoC project and am trying
> to understand why
>
> ctl = open(path("ctl"),ORDWR|OAPPEND);
> ts = "chatty9p 1"; // or some other message
>
> n = fprint(ctl, ts);
>
> succeeds, while
>
> n = write(ctl,ts,sizeof(ts));
>
10 matches
Mail list logo