Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Journaling Device Drivers Message-ID: <1990Aug27.173559.667@eng.umd.edu> Date: 27 Aug 90 17:35:59 GMT References: <9109@uhccux.uhcc.Hawaii.Edu> <9926@goofy.Apple.COM> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 19 In article <9926@goofy.Apple.COM> nmday@apple.com (Neil) writes: >In article <9109@uhccux.uhcc.Hawaii.Edu> rabanes@uhccux.uhcc.Hawaii.Edu >(Greg Rabanes) writes: > >One possible source of error is that the toolbox expects a Pascal string. >your declaration should read : > char fname[255] = "\pdezaley:user:journal4.dat"; Make that 'char fname[256] = ...' MPW (2.02 at least) will not word-align character arrays following other character arrays, so something like char foo[255]; char bar[26]; can cause some real bizarre address errors if you ever try to do a word-length access to bar. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?