Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon Watte) Newsgroups: comp.sys.mac.programmer Subject: Re: String Copy in THINK C 4.0 Message-ID: <2826@draken.nada.kth.se> Date: 2 Feb 90 13:14:46 GMT References: <2083@quiche.cs.mcgill.ca> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 17 In article <2083@quiche.cs.mcgill.ca> monching@quiche.cs.mcgill.ca (Patrick WONG) writes: >I am having problems in figuring out what is the proper way to copy >a pascal sting in think C. The only way I know is converting the pascal Str255 p1, p2; memmove(p2, p1, *p1 + 1); /* copies pascal string p1 to p2 */ Memmove is a) available in the ANSI library b) available as source file (Thank GOD for source files for the libraries !) c) not hard to implement by yourself. h+ -- --- Stay alert ! - Trust no one ! - Keep your laser handy ! --- h+@nada.kth.se == h+@proxxi.se == Jon Watte longer .sig available on request