Path: utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!spool.mu.edu!uunet!munnari.oz.au!manuel!ccadfa!prolix!dac From: dac@prolix.ccadfa.oz.au (Andrew Clayton) Newsgroups: comp.sys.amiga.programmer Subject: Re: Question About FileInfoBlock Structures Message-ID: <18a2e0f8.ARN2922@prolix.ccadfa.oz.au> Date: 5 Feb 91 11:13:28 GMT Article-I.D.: prolix.18a2e0f8.ARN2922 References: <18a052ee.ARN02d3@aquarium.buffalo.ny.us> Reply-To: ccadfa.cc.adfa.oz.au!prolix!dac@munnari.OZ.AU Followup-To: comp.sys.amiga.programmer Organization: More like Mis~, really. Lines: 26 In article <18a052ee.ARN02d3@aquarium.buffalo.ny.us>, Ernest J. Gainey III writes: > I'm curious if anyone knows why this little bit of code produces such > a strange result, from what I can tell, it should do a directory > listing filename, filesize, and protections... I'm just learning C, so this may be completely incorrect, but... > char Protection[9]; > int x; > int Prot; > > static char *ProtectionNames[]= > { "d","e","w","r","a","p","s"}; I thought that STRINGS were delimited by doubt quotes and CONSTANTS by single quotes, therefore your line should be: { 'd','e','w','r','a','p','s'}; Perhaps? Dac --