Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!husc6!cmcl2!lanl!opus!owhite From: owhite@nmsu.edu (Owen White) Newsgroups: comp.sys.amiga.tech Subject: niave lattice C question Message-ID: Date: 26 May 90 17:39:18 GMT Sender: news@nmsu.edu Distribution: comp.sys.comp.tech Organization: NMSU Computer Science Lines: 20 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. -=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-=-*-=-