Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!f.word.cs.cmu.edu!eht From: eht@f.word.cs.cmu.edu (Eric Thayer) Newsgroups: comp.sys.next Subject: Re: Whats wrong? Message-ID: <7132@pt.cs.cmu.edu> Date: 29 Nov 89 13:48:01 GMT References: <1989Nov29.014513.21386@csusac.csus.edu> Organization: Carnegie-Mellon University, CS/RI Lines: 12 In article <1989Nov29.014513.21386@csusac.csus.edu> hoodr@syscube.csus.edu (Robert Hood) writes: > >struct test demo = { "this are a test", 4}; > *demo.temp = '*'; >Bus error > Did you compile with -fwritable-strings? Strictly speaking, you are trying to change a string constant. -- Eric H. Thayer School of Computer Science, Carnegie Mellon (412) 268-7679 5000 Forbes Ave, Pittsburgh, PA 15213