Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!udel!princeton!phoenix!pucc!MJSCHMEL From: MJSCHMEL@pucc.Princeton.EDU (Michael J. Schmelzer) Newsgroups: comp.sys.mac.programmer Subject: C to Pascal strings Message-ID: <4619@pucc.Princeton.EDU> Date: 1 Mar 88 15:05:23 GMT Reply-To: MJSCHMEL@pucc.Princeton.EDU Organization: Princeton University, NJ Lines: 32 Disclaimer: Author bears full responsibility for contents of this article ======================================================================== Newsgroups: comp.sys.mac Date: Saturday, 27-Feb-88 15:04:33 EST Subject: strings (HELP!) From: Me To: Netnews Hello again, everybody. The MPW manual was no help concerning the conversion of C to Pascal strings. The manual also cryptically states that the function is "c2pstr" and doesn't provide an example of how to convert a normal, null terminated C string into a Str255. char *p2cstr(); char *c2psstr(); /* typo in the prototype or in the manual */ I have written some applications in LSC and would like to become competent in MPW before I enter the job market (!) If someone could please provide a working example of C to Pascal string conversion in MPW I would be eternally grateful. (By the way, I remember reading here that someone was completely disgusted with the way LSC handled these conversions. I'd like to know why.) Let's get comp.sys.mac.programmer off to a good start and give me an answer! (This posting was completely ignored on comp.sys.mac) If I sound desperate, I am. (Even if I don't, I am.) ============================================================================== comes around Mike Schmelzer MJSCHMEL@PUCC.Princeton.Edu what goes around ==============================================================================