From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_40,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,476a6e8369830051,start X-Google-Attributes: gid103376,public From: "R. Michael Gillmore" Subject: How should I access variable length data associated with message headers? Date: 1997/12/12 Message-ID: <34919C2B.35F8@collins.rockwell.com>#1/1 X-Deja-AN: 297657429 Reply-To: rmgillmo@cca.rockwell.com Organization: Rockwell-Collins Newsgroups: comp.lang.ada Date: 1997-12-12T00:00:00+00:00 List-Id: I was reading the FAQ this afternoon when this question caught my attention: 2.6: I came across some code that declared a structure with the last member an array of one element, and then did some tricky allocation to make it act like the array had several elements. Is this legal or portable? A: An official interpretation has deemed that it is not strictly conforming with the C Standard. I have done this for nearly as long as I have been writing C. Is there another method to use for this? -- R. Michael "Okie" Gillmore Use: rmgillmo @ cca.rockwell.com First law of parenting: "... I have nourished and brought up children, and they have rebelled against me." -- Isaiah 1:2