#: 11186 S12/OS9/68000 (OSK)
24-Jun-91 22:07:42
Sb: #11185-#Allocation help
Fm: James Jones 76257,562
To: Bob van der Poel 76510,2203 (X)
The canonical C sleaze method is the trailing one-element array method. C
*does* guarantee that the order of declaration corresponds to the order of
fields in memory for structures, aside from some fine print concerning bit
fields (the vagaries of byte ordering and the like don't let one say quite as
much about them as about plain old members of structures). Strictly speaking,
the method doesn't *have* to work (an interpreted C, or some system with bounds
checking, --er, attempts--to go past the end of the array as declared), but in
practice it will work.
There is 1 Reply.
|