From: utzoo!decvax!harpo!utah-cs!utah-gr!thomas Newsgroups: net.unix-wizards Title: Re: structures, enum Article-I.D.: utah-gr.572 Posted: Fri Oct 8 09:57:16 1982 Received: Tue Oct 12 04:01:21 1982 References: unc.4058 struct foo { ... } fooinst; f(fooptr) struct foo * fooptr; {} g(fooinst) struct foo fooinst; {} struct foo h() {} ... f(&fooinst); /* pass address of fooinst */ g(fooinst); /* Pass contents of fooinst */ fooinst = h(); /* Return new contents of fooinst */ ... ================================================================ Enums are treated differently by different compilers. If you're using (Berkeley) pcc, you can't do any arithmetic on enums. If you're using the V7 Ritchie compiler, they are treated as integers. =Spencer