Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utah-gr.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!utah-cs!utah-gr!peter From: peter@utah-gr.UUCP (Peter S. Ford) Newsgroups: net.lang.c Subject: Re: What is wrong with this program? Message-ID: <1552@utah-gr.UUCP> Date: Tue, 13-Aug-85 00:54:00 EDT Article-I.D.: utah-gr.1552 Posted: Tue Aug 13 00:54:00 1985 Date-Received: Wed, 14-Aug-85 21:57:23 EDT References: <117@graffiti.UUCP> <545@grkermi.UUCP> <2606@sun.uucp> Reply-To: peter@utah-gr.UUCP (Peter S. Ford) Distribution: net Organization: Univ of Utah CS Dept Lines: 15 The declaration of f() { > struct foo { ... > } bar; > struct foo *bletch = &bar; ... } is very useful when the structure needs to be passed around as an argument to functions, and the life of the storage is for the length of the current procedure invocation. This does reveal my preference for passing a variable which is a pointer to the structure "qqsv(bletch);" rather than "qqsv(&bar);".