Path: utzoo!utgpu!water!watmath!clyde!saf@moss.ATT.COM From: saf@moss.ATT.COM Newsgroups: comp.sys.mac.programmer Subject: Re: C to Pascal strings Summary: how to deal with pascal strings in MPW C Message-ID: <22924@clyde.ATT.COM> Date: 7 Mar 88 14:07:28 GMT References: <4619@pucc.Princeton.EDU> Sender: nuucp@clyde.ATT.COM Lines: 16 In MPW 2.0, there is a \p escape which makes Pascal strings: "\phello world\n" is a pascal string. A Str255 is a structure: struct { char length; char data[255]; } (The member names are probably wrong - this is from memory) Anyway, because it is a structure, you have to take its address explicitly. Steve Falco moss!saf saf@moss.ATT.COM