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

>    fprintf(fp,"%.2f\t%.2f",x,y);
>    fclose(fp);
>    if(fp==-1) {
>      puts("close error");
>      ex;
>      }
> return 0;
> }
>

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().

-- 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