Skip to main content

C0402

标准库函数localeconv,getenv,setlocale或strerror返回的指针只得作为const修饰类型的指针使用

Category: Mandatory

Decidability: Undecidable

Scope: System

说明

localeconv 函数会返回struct lconv *类型的指针,但该指针必须被视为const struct lconv *类型。

登录查看完整文章