Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!visix!amanda From: amanda@visix.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: Quick Question - Strings Message-ID: Date: 13 Dec 90 21:59:28 GMT References: <32027.276537C6@stjhmc.fidonet.org> <90347.101213CXT105@psuvm.psu.edu> <1990Dec13.183037.655@eng.umd.edu> Organization: Visix Software Inc., Reston, VA Lines: 17 In article <1990Dec13.183037.655@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes: >"A string beginning with "\p" or "\P" is a Pascal string. It is not terminated >with a null byte". That strcpy can copy tons of characters and write all over >memory. Well, actually, several C compilers (including, I believe, MPW C) *do* terminate Pascal-style string literals with a null byte. However, it is probably safest not to assume that this will work. -- Amanda Walker amanda@visix.com Visix Software Inc. ...!uunet!visix!amanda -- "I was born in Iowa--I just *work* in outer space" --Star Trek IV