Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Aztec C 5.0d w/ 2.0 includes. Char vs. UBYTE Message-ID: <19252@cbmvax.commodore.com> Date: 22 Feb 91 22:22:14 GMT References: <19176@cbmvax.commodore.com> <2169@fornax.UUCP> <1991Feb22.175826.26009@jato.jpl.nasa.gov> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Distribution: na Organization: Commodore, West Chester, PA Lines: 16 In article <1991Feb22.175826.26009@jato.jpl.nasa.gov> jdickson@jato.Jpl.Nasa.Gov (Jeff Dickson) writes: > In 'C', a lock must be declared as a struct FileLock, less you could >not dereference its fields! The AmigaDOS functions return BPTR's to FileLock structures, not pointers to FileLock structures. I wouldn't recommend pretending that they return struct FileLock *. Dereferencing that will be nothing but trouble. I don't think there's much in a FileLock structure you should read, anyways. Peter -- Peter Cherna, Software Engineer, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "Oh, PIN-compatible! I thought you wanted me to make it IN-compatible!"