[comp.lang.c] Structure Assignment?

gillies@p.cs.uiuc.edu (01/15/90)

Recently, there was some discussion about a Lightspeed C function
which returned a structure.  Are the following structure features
in draft ANSII C?

	structure return from a function
	structure passing to a function
	structure assignment among variables

Lightspeed C claims to be "ANSII compatible", but gags on the
structure assignment, after a function returns the value.  The book,
"C: A Reference Manual" just says, "newer compilers now allow
structures to be assigned, ...."  This is vague.

henry@utzoo.uucp (Henry Spencer) (01/16/90)

In article <77200048@p.cs.uiuc.edu> gillies@p.cs.uiuc.edu writes:
>... Are the following structure features
>in draft ANSII C?
>
>	structure return from a function
>	structure passing to a function
>	structure assignment among variables

All three are in ANSI C (it's not a draft any more).  They've also been
in de-facto C for a long time, although they slightly postdate K&R1.
-- 
1972: Saturn V #15 flight-ready|     Henry Spencer at U of Toronto Zoology
1990: birds nesting in engines | uunet!attcan!utzoo!henry henry@zoo.toronto.edu