On Fri, Aug 8, 2008 at 4:53 PM, Bill Cunningham <[EMAIL PROTECTED]> wrote:

>
> ----- Original Message -----
> From: "Brett McCoy" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, August 08, 2008 4:40 PM
> Subject: Re: [c-prog] warning
>
> > You are still comparing the wrong thing here. If you want to check the
> > status of fclose(), you need to capture the integer value that gets
> > returned
> > by fclose().
> >
>     Does fclose return an int or pointer ? My reference says an int but
> isn't -1 considered an int ?


fclose() returns an int. -1 is a signed int.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi


[Non-text portions of this message have been removed]

Reply via email to