Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: Re: CtoPstr Message-ID: <32580.276B8C29@stjhmc.fidonet.org> Date: 16 Dec 90 14:47:44 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 18 In article <1990Dec13.195336.15562@watdragon.waterloo.edu> jlee4@lion.uwaterloo.ca (Johnny Lee), responding to vandevyver@cuvee.enet.dec.com, writes: > Huh?! He doesn't need to change the type of temp. If you've got > a C string in temp, then all you need to do is cast it to a char > * (since I expect the prototype is CtoPStr(char *);, actually > I think it's "char *CtoPStr(char *);" ). It is char *CtoPstr(char *) but a Str255 is typedef unsigned char Str255[256]; so you will need a cast from char * to unsigned char *. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org