Re: sizeof (c) vs sizeof (*c)
Florian Boor <[email protected]> Mon, 14 Aug 2006 11:28:31 +0200
| Newsgroups | gmane.comp.handhelds.gpe |
|---|---|
| Message-ID | <[email protected]> |
Hi, Neal H. Walfield wrote: > Well *if* the second is correct, I don't see why you'd prefer the > first as it is saying something very different. > > sizeof (c) is here the size of a pointer so even if it happens that > sizeof (struct gpe_pim_category) is the size of a pointer, the code is > wrong. The programmer likely intended to write sizeof (*c). then the second one is really wrong... could have been some uncommon C notation it happens frm time to time that you discover somethign new in y language you thought you knew ;) Greetings Florian -- The dream of yesterday Florian Boor is the hope of today Tel: +49 271-771091-14 and the reality of tomorrow. Fax: +49 271-771091-19 [Robert Hutchings Goddard, 1904] [email protected] 1D78 2D4D 6C53 1CA4 5588 D07B A8E7 940C 25B7 9A76