Re: sizeof unpadded struct size
- From: "*** T. Winter" <***.Winter@xxxxxx>
- Date: Tue, 16 Dec 2008 16:01:03 GMT
In article <87zliw2tz3.fsf@xxxxxxxxxxxxxxxxxxxx> Phil Carmody <thefatphil_demunged@xxxxxxxxxxx> writes:
....
However, simply on face value, the offsetof the last member plus
the sizeof the last member would give a numerically equivalent value
to what he claims to want.
No, padding does not only occur at the end of a struct.
--
*** t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~***/
.
- Follow-Ups:
- Re: sizeof unpadded struct size
- From: Phil Carmody
- Re: sizeof unpadded struct size
- From: pete
- Re: sizeof unpadded struct size
- References:
- sizeof unpadded struct size
- From: sinbad
- Re: sizeof unpadded struct size
- From: Ian Collins
- Re: sizeof unpadded struct size
- From: Phil Carmody
- sizeof unpadded struct size
- Prev by Date: Re: Stack depth
- Next by Date: Re: executable file runs on some computers, not all
- Previous by thread: Re: sizeof unpadded struct size
- Next by thread: Re: sizeof unpadded struct size
- Index(es):