Several problems with scanf-family functions
fscanf() and other file-based formatted options seem broken in current libc.
These functions are part of PDCLib code base, but were probably under-tested by its author, because even simple cases like
scanf("%s", buf) fail to produce expected result.
We need, in a first time, to fix at least two things :
- modifier "%s" work once, but is unable to deal with blankspace !?
- many integer modifiers, like "%d", work well but do not trigger
ferror()in case of mismatch
In a second time, all the stdio implementation need a deeper review and test to be sure we don't carry too much bad implementation with our libc, and maybe check existing implementation in other libc (especially BSD ones) to change entirely the design used (to have something far more tested).