test_fgetws_static.c (227B)
1 #include "common.h" 2 3 #define _GNU_SOURCE 4 #include <wchar.h> 5 6 int main(int argc, char** argv) { 7 wchar_t buffer[12] = {L'A'}; 8 9 CHK_FAIL_START 10 fgetws(buffer, 14, NULL); 11 CHK_FAIL_END 12 13 putwchar(buffer[0]); 14 return ret; 15 }