Mark Goodes wrote: > I can see how this would work for strings that were less than 255 bytes in > length. Would it still work if the string was exactly 255 bytes long? > Methinks it might be possible to overwrite the length byte of the next string > in memory, or some such error. > > Chris Stasny wrote: > > > Pascal to C is easy. > > > > t$ = "Fred" > > poke (@t$+peek(@t$)),0 > > strPtr& = @t$+1 > > It'll overwirte the memory, but if you DIM the string yourself, you can just add a few bytes of buffer space after it and you'll be alright. It'll still overwrite, but as you've added the buffer it won't interfere with anything. I haven't tried it myself, but it should work, correct me if I'm wrong. /Lars Gafvert