Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!samsung!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Zero Length Arrays Allowed in C Standard? Message-ID: <11715@smoke.BRL.MIL> Date: 1 Dec 89 00:06:32 GMT References: <2298@jato.Jpl.Nasa.Gov> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <2298@jato.Jpl.Nasa.Gov> baalke@mars.jpl.nasa.gov (Ron Baalke) writes: >are zero length arrays allowed in the ANSI standard for C? No; Standard C does not support zero-sized objects. I'm POC for a zero-sized object special interest group, but frankly there has been little activity since the committee's consensus was clearly against such objects. You might consider changing the [0]s to [1]s and where the allocation/pointer trickery occurs in the code making an adjustment for the additional byte in the object type.