Bill Cunningham wrote: > It makes no difference I've tried both those. If I try it the third way > it doesn't seem to want to compile. >
What about this?
char a[]="hello\n";
FILE *fp;
fp=fopen("file","a");
if (fp==(FILE*)NULL) {
puts("fopen error");
exit(1);
}
When in doubt, casting NULL seems to work for me.
--
John Gaughan
