fork download
  1. #include <stdlib.h>
  2. #include <assert.h>
  3. #include <limits.h>
  4. #include <locale.h>
  5. #include <stdio.h>
  6.  
  7. int main()
  8. {
  9. char mb[MB_LEN_MAX]="";
  10. wchar_t euro=0x20ac;
  11. assert( MB_LEN_MAX > 1 );
  12. setlocale(LC_CTYPE,"");
  13. wctomb( mb, euro );
  14. fwrite( mb, MB_LEN_MAX, 1, stdout ); fflush(stdout);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 4936KB
stdin
Standard input is empty
stdout