Add weprintf() and replace fprintf(stderr, ...) calls

There is still some programs left to be updated for this.

Many of these programs would stop on the first file that they
could not open.
This commit is contained in:
sin
2013-11-13 11:39:24 +00:00
parent 34f7a688cb
commit b8edf3b4ee
15 changed files with 47 additions and 34 deletions

View File

@@ -41,7 +41,8 @@ main(int argc, char *argv[])
} else {
for (; argc > 0; argc--) {
if (!(fp = fopen(*argv, "r"))) {
eprintf("fopen %s:", *argv);
weprintf("fopen %s:", *argv);
continue;
}
dsc.name = *argv;
dsc.fp = fp;