On Mon, Aug 4, 2008 at 9:11 PM, Bill Cunningham <[EMAIL PROTECTED]> wrote:
>    My compiler makes this complaint.
>
> p.c: In function `main':
> p.c:12: warning: comparison between pointer and integer

What happens if you chance

if(fp == NULL)

to

if(!fp)

Or try it this way

if((fp = fopen("file", "a")) == NULL) {
  ...
} else {
  ...
}

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

Reply via email to