Re: function




"Joachim Schmitz" <nospam.jojo@xxxxxxxxxxxxxxxxxx> wrote in message
news:g1rpes$mp7$1@xxxxxxxxxxxx

[snip]

while (num--) fputc(a, fp);
fclose(fp);
return 0;
}

Still needs some error checking (num>=0, fp != NULL, fclose and fput
worked)

Bill
Bye, Jojo

While(num--) What's that? Is that the same as what I was thinking here.

int c;
for(c=1;c<num;c++)

Bill


.



Relevant Pages

  • Re: function
    ... Still needs some error checking (num>=0, fp!= NULL, fclose and fput ... Bye, Jojo ...
    (comp.lang.c)
  • Re: Advice needed...
    ... jojo wrote: ... Hmmm, that one might backfire... ... "What the heck were you doing down ...
    (rec.motorcycles.harley)
  • Re: how to output a series of files in a loop
    ... > want to do is to use fopen, fclose to output the files that record ... > what I want to save, not mat file. ...
    (comp.soft-sys.matlab)
  • Re: fclose(0)
    ... Chris Torek wrote: ... snip ... ... attempted to have it both ways: "We trust you (putting the burden ... However fclose doesn't crash on receiving a NULL. ...
    (comp.lang.c)
  • Re: Re: New Questions
    ... jojo wrote: ... <SNIP> ... When do you take your MSF class? ... roll it around on your tongue, take the class (and be wery wery ...
    (rec.motorcycles.harley)