jp48+@andrew.cmu.edu (Jonathan Pace) (03/23/91)
I have an instance of arrays that I want to store in a temporary instance while I play around with the working data set. Can I do either of the following in standard C (I have to eventually run on a SUN workstation): 1: Equate the instances i.e. - temp_instance = working_instance 2: Equate the individual arrays i.e. - temp_inst.array1 = work_inst.array1 or am I going ot have to equate each value? Thanks for the help, Jon Pace beginning C programmer
bin@primate.wisc.edu (Brain in Neutral) (03/23/91)
From article <kbujuWG00WB_8N7kYt@andrew.cmu.edu>, by jp48+@andrew.cmu.edu (Jonathan Pace): > > I have an instance of arrays that I want to store in a temporary instance > while I play around with the working data set. Can I do either of the > following in standard C (I have to eventually run on a SUN workstation): In C, if you just give the name of an array, that means "the address of the array". So array1 = array2 won't do what you want. You can do a block copy with BlockMove(), but won't help you when you get to the Sun. There you'll probably want bcopy(), or memcpy(). -- Paul DuBois dubois@primate.wisc.edu