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
tr.c
View File

@@ -271,6 +271,6 @@ read:
goto read;
write:
lastrune = r;
writerune("<stdout>", stdout, &r);
efputrune(&r, stdout, "<stdout>");
goto read;
}