Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Str255 and char* Message-ID: <1072.27AA0D85@stjhmc.fidonet.org> Date: 1 Feb 91 00:53:37 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 17 Matthew D Moss writes in a message to All MDM> Can someone tell me what exactly is the difference between Str255 MDM> and char* "char*" is a pointer to an arbitrary number of bytes. Str255 is an array of 256 bytes with a length byte at the beginning (hence Str255). You can use a Str255 as a char* with typecasting, but you must remember to begin the reference to the char-data at myStr255[1]: "*((char *)myStr255+1)" or somesuch (allowing for bad parenthesis usage). Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org