runcoms.c, rawfile.c, include filename in the 'ASCII/binary raw file' printout

This commit is contained in:
h_vogt 2017-02-26 11:42:25 +01:00 committed by rlar
parent 926ba4baaf
commit d7a1899210
2 changed files with 4 additions and 4 deletions

View File

@ -71,13 +71,13 @@ raw_write(char *name, struct plot *pl, bool app, bool binary)
perror(name);
return;
}
fprintf(cp_out, "binary raw file\n");
fprintf(cp_out, "binary raw file \"%s\"\n", name);
} else {
if ((fp = fopen(name, app ? "a" : "w")) == NULL) {
perror(name);
return;
}
fprintf(cp_out, "ASCII raw file\n");
fprintf(cp_out, "ASCII raw file \"%s\"\n", name);
}
/* --------------------------------------------------------------------*/

View File

@ -265,7 +265,7 @@ dosim(
ft_setflag = FALSE;
return 1;
}
fprintf(cp_out, "ASCII raw file\n");
fprintf(cp_out, "ASCII raw file \"%s\"\n", wl->wl_word);
}
else if (!ascii) {
if ((rawfileFp = fopen(wl->wl_word, "wb")) == NULL) {
@ -273,7 +273,7 @@ dosim(
ft_setflag = FALSE;
return 1;
}
fprintf(cp_out, "binary raw file\n");
fprintf(cp_out, "binary raw file \"%s\"\n", wl->wl_word);
}
/*---------------------------------------------------------------------------*/
#else