Re: US Military Dead during Iraq War



Frank Kotler wrote:
>
> Okay, what's the trick? Segfaults on my machine...

Maybe you don't have created the input file input.txt.

Replace the line:

in= fopen("input.txt","r");

by:

if ( (in=fopen("input.txt","r")) == NULL)
{printf("input file not found\n"); exit(0);}
.



Relevant Pages

  • Re: Line/word wrap program.
    ... >> okay, but lacks some checking stuff, etc. ... > When run with no command-line arguments, it segfaults. ... You should have gotten the usage response for only one argument. ... > This is the obvious bug. ...
    (comp.lang.c)
  • Re: anybody not have a uni buddy?
    ... > mask and a cape should do the trick. ... Okay, that got me laughing out loud. ...
    (rec.sport.unicycling)
  • Re: 90degree unispin to tire comp?
    ... I thought as long as you hit the trick the ... trophy is yours.. ... Okay, i'll put 2nd place. ... perhaps a smallspin? ...
    (rec.sport.unicycling)
  • Re: XML Parser Error
    ... Subject: XML Parser Error ... Here's my code and input file: ... Works okay for me: ...
    (perl.beginners)
  • Re: Tupolev Tu-4
    ... Daryl Hunt wrote: ... The trick was started with the Nene Engine. ... It's okay to copy or ...
    (rec.aviation.military)