owhite@nmsu.edu (Owen White) (05/27/90)
I hope this is the right group to post to...
this blows up every time.
#include "lattice/stdio.h"
main()
{ FILE *fp;
if ((fp = fopen("stuff.h","w"))==0{
fprintf(stderr,"error");
exit(1);}
fprintf(fp,"testing..."); /*blows up now*/
fclose(fp);
}
I never get a complier error, and removing the fprintf(fp,"testing");
still blows up at the fclose(fp). What am I doing wrong?? PLEASE
email to owhite@nmsu.edu
--
-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-n
support the stupid, they buy your software.
-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-
farren@well.sf.ca.us (Mike Farren) (06/10/90)
owhite@nmsu.edu (Owen White) writes: >if ((fp = fopen("stuff.h","w"))==0{ ^ (no closing paren) -- Mike Farren farren@well.sf.ca.us