What is wrong with this code ?

David desJardins desj at idacrd.UUCP
Mon Dec 11 05:14:04 AEST 1989


>From article <1156 at nsscb.UUCP>, by nrg at nsscb.UUCP (G.Narotham Reddy):
> if (nfile.st_mode & S_IFMT == S_IFREG) 

   What is wrong with this code is that, in this as in so many other
examples, C has the world's stupidest precedence for its operators.

   -- David desJardins



More information about the Comp.lang.c mailing list