mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-26 19:33:27 +08:00
a764eb19da
Implement mingw-w64 emulation of fgetws() via fwscanf() with "%l[^\n]" format to have C95+ compatibility. Note that scanf format does not support specifying length of the string buffer via additional argument (like printf format "*"), so specify length of the buffer directly in the format generated by swprintf function. Function fgetws() has to return also the trailing newline if there is a place for it in buffer, so read it by additional fwscanf() call. Signed-off-by: Martin Storsjö <martin@martin.st> |
||
---|---|---|
build-aux | ||
COPYING.MinGW-w64 | ||
COPYING.MinGW-w64-runtime | ||
mingw-w64-crt | ||
mingw-w64-doc | ||
mingw-w64-headers | ||
mingw-w64-libraries | ||
mingw-w64-tools | ||
.gitignore | ||
aclocal.m4 | ||
AUTHORS | ||
config.h.in | ||
configure | ||
configure.ac | ||
COPYING | ||
DISCLAIMER | ||
DISCLAIMER.PD | ||
Makefile.am | ||
Makefile.in |