What is wrong with this program?

Peter S. Ford peter at utah-gr.UUCP
Tue Aug 13 14:54:00 AEST 1985


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);". 



More information about the Comp.lang.c mailing list