Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!snail!carroll
From: carroll@snail.CS.UIUC.EDU
Newsgroups: comp.lang.c
Subject: Re: Args: var number & var types
Message-ID: <10700019@snail>
Date: 12 May 88 17:01:00 GMT
Lines: 61
Nf-ID: #R:c); break;
case 1 : printf("%d",object->i); break;
...
}
}
main()
{
union thing fudge;
foo(0,fudge.c='x',&fudge);
foo(1,fudge.i=17,&fudge);
...
/* this could be done with macro's, or better, just put the
value into fudge instead of whatever other var, and then
just call foo with foo(2,&fudge).
*/
}
Alan M. Carroll amc@woodshop.cs.uiuc.edu carroll@s.cs.uiuc.edu
Grad Student (TA) / U of Ill - Urbana ...{ihnp4,convex}!uiucdcs!woodshop!amc
"Too many fools who don't think twice
Too many ways to pay the price" - AP & EW