Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fopen error

0 views
Skip to first unread message

Peter Burling

unread,
Aug 31, 2009, 10:56:53 PM8/31/09
to
Am using gcc441 (also tested in 433)(both Paul Smedly's) but when I use
FILE *fd;
if((fd = fopen("mydll1.dfl", "r"))== NULL);
{
printf("Cannot open %s .\n", path);
return NULL ;
}
I always a null returned.
If I use w or w+ it creates/overwrites the file but still returns a null
pointer.
Even if I use just fd = fopen.......
I still end with a null pointer

Can someone help please

Stefan Pelz

unread,
Sep 1, 2009, 3:52:57 AM9/1/09
to
Hello Peter,

fopen probably works fine but there is a superfluous colon at the end of
the line.

Regards
Stefan

pjmjburling

unread,
Sep 1, 2009, 3:33:26 AM9/1/09
to
Thanks Stefan,
obviously I can't see the words for the letters
0 new messages