Skip to main content

C0408

传递给<ctype.h>函数的值必须能够表示为无符号char或EOF类型

Category: Mandatory

Decidability: Undecidable

Scope: System

依据

按照定义,<ctype.h>的相关函数以 int 类型为实参,按照预期,它的值必须是 无符号char 类型或者是等同于EOF的负值。使用任何其他值会导致 未定义行为

登录查看完整文章