Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.UUCP Newsgroups: comp.lang.c Subject: Re: Auto variable with sizeof == 0 Message-ID: <5621@brl-smoke.ARPA> Date: Fri, 13-Feb-87 15:41:08 EST Article-I.D.: brl-smok.5621 Posted: Fri Feb 13 15:41:08 1987 Date-Received: Sun, 15-Feb-87 23:18:31 EST References: <795@cullvax.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <795@cullvax.UUCP> drw@cullvax.UUCP (Dale Worley) writes: -braner@batcomputer.tn.cornell.edu (braner) writes: -> typedef struct LINE { ->... -> char text[]; /* !!!!!!!!! */ -> } LINE; -Replace "char text[]" with "char text[0]". Since X3J11 hasn't agreed to permit 0-sized objects anywhere, you might be better off using "char text[1]". Turn off any range-checking your C system might have.