10 ms·
… or use `fgetwc()`.
by classified 3y ago
… or use `fgetwc()`.
- spc476 3y agoC programs start out in the "C" locale, so just using fgetwc() won't work out of the box (or won't do what you expect it to do). You'll need to call setlocale("") to get the expected behavior.