Scrap writerune(), introducing fputrune()

Interface and function as proposed by cls.
Code is also shorter, everything else analogous to fgetrune().
This commit is contained in:
FRIGN
2015-02-11 20:58:00 +01:00
parent a5ae899a48
commit 7c578bf5b0
9 changed files with 46 additions and 40 deletions

2
tail.c
View File

@@ -63,7 +63,7 @@ taketail(FILE *fp, const char *str)
fputs(ring[j], stdout);
free(ring[j]);
} else if (r) {
writerune("<stdout>", stdout, &r[j]);
efputrune(&r[j], stdout, "<stdout>");
}
} while ((j = (j + 1) % num) != i);