putwchar.c 297 B

123456789101112131415
  1. #include <string.h>
  2. #include <stdio.h>
  3. #include <wchar.h>
  4. #include <stdlib.h>
  5. #include "test_helpers.h"
  6. int main(void) {
  7. wchar_t *wcs = L"zß水🍌";
  8. for (int i = 0; wcs[i] != L'\0'; i++) {
  9. wint_t status = putwchar(wcs[i]);
  10. ERROR_IF(putwchar, status, == WEOF);
  11. }
  12. }