I want to make a small change in one C code,in order to double-check some results.Just few relevant lines
FILE *f1_out, *f2_out;
/* open files */
if ((f1_out = fopen(vfname, "w")) == (FILE *) NULL)
{
fprintf(stderr, "%s: Can't open file %s.\n", progname, vfname);
return (-1);
}
Then goes some calculations and
yes = fwrite(vel, nxyz*sizeof(float), 1, f1_out);
How to change the last line to get the ascii output?