source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/stdio/fwide.c
Last change on this file was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 270 bytes |
Line | |
---|---|
1 | #include "stdio_impl.h" |
2 | #include "locale_impl.h" |
3 | |
4 | int fwide(FILE *f, int mode) |
5 | { |
6 | FLOCK(f); |
7 | if (mode) { |
8 | if (!f->locale) f->locale = MB_CUR_MAX==1 |
9 | ? C_LOCALE : UTF8_LOCALE; |
10 | if (!f->mode) f->mode = mode>0 ? 1 : -1; |
11 | } |
12 | mode = f->mode; |
13 | FUNLOCK(f); |
14 | return mode; |
15 | } |
Note:
See TracBrowser
for help on using the repository browser.