lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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]
\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.755 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site