Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!hao!gatech!seismo!rochester!cornell!batcomputer!steig From: steig@batcomputer.UUCP Newsgroups: comp.sys.mac Subject: Why doesn't this work? Message-ID: <1376@batcomputer.tn.cornell.edu> Date: Sun, 14-Jun-87 22:10:22 EDT Article-I.D.: batcompu.1376 Posted: Sun Jun 14 22:10:22 1987 Date-Received: Tue, 16-Jun-87 01:35:51 EDT Reply-To: steig@tcgould.tn.cornell.edu (Mark J. Steiglitz) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 22 Keywords: Lightspeed C I'm just learning C, so if this is obvious, then please don't flame on me. The following is written in Lightspeed C: /*Given these declarations,*/ char *Cstring,*copyofCstring; Str255 Pstring; /*This works*/ Cstring=PtoCstr(Pstring); stpcpy(copyofCstring,Cstring); /*This doesn't*/ stpcpy(copyofCstring,PtoCstr(Pstring); /*Why?*/ -- |Mark J. Steiglitz |Bitnet: steig@crnlthry, araj@crnlvax5 | |USnail: 66 Steiglitz Road |Arpanet: steig@tcgould.tn.cornell.edu | | Liberty, NY 12754 | araj@vax5.ccs.cornell.edu | | |Usenet: steig@batcomputer.tn.cornell.edu.uucp |