字符串、字符处理

<cctype>

检验字符类型

  • isalpha(ch)
  • isupper(ch)
  • islower(ch)
  • isdigit(ch)
  • isxdigit(ch)
  • isalnum(ch)
  • ispunct(ch)
  • isspace(ch)
  • isprint(ch)

大小写转换

  • toupper(ch)
  • tolower(ch)

I/O