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

4
utf.h
View File

@@ -61,5 +61,7 @@ Rune toupperrune(Rune);
int fgetrune(Rune *, FILE *);
int efgetrune(Rune *, FILE *, const char *);
void writerune(const char *, FILE *, Rune *);
int fputrune(const Rune *, FILE *);
int efputrune(const Rune *, FILE *, const char *);
int chartorunearr(const char*, Rune **);