Messages in this thread | | | Date | Wed, 5 May 1999 22:57:35 +0200 | From | Kurt Garloff <> | Subject | Re: fork() Problem? |
| |
On Wed, May 05, 1999 at 04:41:57PM -0400, Richard B. Johnson wrote: > Not so. Your first instance tested if the assignment succeeded.
No! You test for the return value of the assignment which is the assigned value, no an indication whether the assignment was successful or not. (How could it be unsuccessful, BTW?) Or is C that different from C++ ???
What you probably mean is that
if (<expression having a int or a pointer as result>)
is not defined.
I don't if it this, but hundreds of
if (err) statements would be wrong and should be recoded to if (err != 0) Regards, -- Kurt Garloff <garloff@suse.de> SuSE GmbH, Nürnberg, FRG Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974) [unhandled content-type:application/pgp-signature] | |