Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!lll-tis!lll-winken!spl1!ddsw1!koala
From: koala@ddsw1.UUCP (Karl Meiser)
Newsgroups: comp.lang.c
Subject: Re: when a core dump occurs ?
Keywords: core dump,
Message-ID: <1285@ddsw1.UUCP>
Date: 27 Jun 88 22:18:22 GMT
References: <835@suvax0.shizuoka.JUNET>
Reply-To: koala@ddsw1.UUCP (Karl Meiser)
Organization: Traveller's Aid, Mundelein, IL
Lines: 35


Usually its errors that cant be checked by the compiler,  such as missing
or incorrect arguments,  examples:

main()
{
long x;

printf("%s");   /*  Missing argument  */
printf("%d",x);  /*  Should be descriptor for long,  %d is for ints  */
}

Usually i find myself doing fprintf's without the file descriptor;

main()
{
FILE *fp;

fp = fopen("foo","r");

fprintf("Hello file named foo\n");
/* Should be
fprintf(fp,"Hello file named foo\n");
  */

fclose(fp);
}


Hope this helps.

-- 
Karl Meiser	koala@_d_d_s_w_1
		koala@m-net 
		koala@chinet
		koala@igloo