runcoms.c, rawfile.c, include filename in the 'ASCII/binary raw file' printout
This commit is contained in:
parent
926ba4baaf
commit
d7a1899210
|
|
@ -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);
|
||||
}
|
||||
/* --------------------------------------------------------------------*/
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue