== vs =

Stephen J. Friedl friedl at vsi.UUCP
Mon Apr 11 03:05:43 AEST 1988


< In article <226 at hotlr.ATT>, dkc at hotlr.ATT (Dave Cornutt) writes:
< > [...]                               D is another matter; catching the
< > accidental misapplication of "=" in "if" statements would be worth it.
< 
< The one thing that everyone seems to have forgotten in this discussion
< is that `=' is NOT always invalid in and if clause:

Just for the record, some of use both flavors in an |if| test...

{
FILE	*fp;

	if (fp = fopen(file, "r"), fp == NULL)
	{
		...

-- 
Steve Friedl   V-Systems, Inc.   "Yes, I'm jeff at unh's brother"
friedl at vsi.com  {backbones}!vsi.com!friedl  attmail!vsi!friedl



More information about the Comp.lang.c mailing list