Scrap readrune(), introducing fgetrune()

Interface as proposed by cls, but internally rewritten after a few
considerations.
The code is much shorter and to the point, aligning itself with other
standard functions. It should also be much faster, which is not bad.
This commit is contained in:
FRIGN
2015-02-11 20:13:43 +01:00
parent 4888bae455
commit a5ae899a48
10 changed files with 45 additions and 57 deletions

3
utf.h
View File

@@ -59,6 +59,7 @@ int isxdigitrune(Rune);
Rune tolowerrune(Rune);
Rune toupperrune(Rune);
int readrune(const char *, FILE *, Rune *);
int fgetrune(Rune *, FILE *);
int efgetrune(Rune *, FILE *, const char *);
void writerune(const char *, FILE *, Rune *);
int chartorunearr(const char*, Rune **);