* Peter Seebach <[EMAIL PROTECTED]> [010329 23:49] wrote: > In message <[EMAIL PROTECTED]>, Todd Whitesel writes: > >Just put a 1-element array at the end of your header struct, and account for > >it when you work out how much extra space to allocate. C memory layout rules > >guarantee that this usage will have the desired effect. > > Nope, not portable. The implementation is allowed to bust you for > overstepping the bounds of the array. :) > > The only portable solution is the new feature in C99. Which new feature? -- -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Question regarding the array of size 0. Shankar Agarwal
- Re: Question regarding the array of size 0. Peter Seebach
- Re: Question regarding the array of size 0. John Franklin
- Re: Question regarding the array of size 0... Peter Seebach
- Re: Question regarding the array of size 0... Johan Danielsson
- Re: Question regarding the array of size 0. Julian Elischer
- Re: Question regarding the array of size 0... Todd Whitesel
- Re: Question regarding the array of si... Peter Seebach
- Re: Question regarding the array ... Alfred Perlstein
- Re: Question regarding the ar... Harti Brandt
- Re: Question regarding th... Lord Isildur
- Re: Question regarding th... John Franklin
- Re: Question regarding th... Lord Isildur
- Re: Question regarding th... John Franklin
- Re: Question regarding th... Benny Prijono
- Re: Question regarding th... John Gregor
- Re: Question regarding th... Greg A. Woods
- Re: Question regarding th... Drew Eckhardt
- Re: Question regarding th... Frederick Bruckman