#include <stdio.h>
#include <wctype.h>
int main ()
{
  wchar_t c;
  int i=0;
  wchar_t str[] = L"Example sentence to test iswblank\n";
  while (str[i])
  {
    c = str[i];
    if (iswblank(c)) c = L'\n';
    putwchar (c);
    i++;
  }
  return 0;
}

输出

Ex
ample
sentence
to
test
iswblank

 

相关文章:

  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-08-27
  • 2022-02-10
  • 2021-09-05
  • 2022-01-28
猜你喜欢
  • 2021-11-27
  • 2021-05-28
  • 2021-07-03
  • 2021-12-14
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
相关资源
相似解决方案