Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!charyb!will From: will@kfw.COM (Will Crowder) Newsgroups: comp.lang.c Subject: Re: MSC delay() routine? Message-ID: <1990Mar13.170707.29795@kfw.COM> Date: 13 Mar 90 17:07:07 GMT References: <1280001@hpcc01.HP.COM> <1990Mar13.041457.17217@cubmol.bio.columbia.edu> Reply-To: will@charyb.UUCP (Will Crowder) Organization: KFW Corporation, Newbury Park, CA Lines: 19 In article <1990Mar13.041457.17217@cubmol.bio.columbia.edu> ping@cubmol.bio.columbia.edu (Shiping Zhang) writes: >[...] >> struct dostime_t time1, time2; >[...] >> _dos_gettime(&time1); time2=time1; > ^^^^^^^^^^^ >You can't assign a struct like that. You must assign the elements >of a struct individually. No, you don't have to assign the elements of the struct individually. We just went through this. You can do anything with a struct you can do with any other object, including assign it, pass it by value, etc. etc. All ANSI C compilers and almost all UNIX C compilers now handle this. In the dark old days, you couldn't do that, but that is no longer the case. (Don't you read this group before you post?) Will