ANSI C 遵从性ANSI C Compliance

在运行时系统(如函数、宏、常量、变量和类型定义)中,所有 Microsoft 专用标识符的命名规则均符合 ANSI 标准。The naming convention for all Microsoft-specific identifiers in the run-time system (such as functions, macros, constants, variables, and type definitions) is ANSI-compliant. 在本文档中,任何符合 ANSI/ISO C 标准的运行时函数都将标记为与 ANSI 兼容。In this documentation, any run-time function that follows the ANSI/ISO C standards is noted as being ANSI compatible. 符合 ANSI 标准的应用程序应仅使用这些与 ANSI 兼容的函数。ANSI-compliant applications should only use these ANSI compatible functions.

Microsoft 专用函数和全局变量的名称均以一个下划线开头。The names of Microsoft-specific functions and global variables begin with a single underscore. 这些名称只能在您的代码范围内进行本地重写。These names can be overridden only locally, within the scope of your code. 例如,当您包括 Microsoft 运行时标头文件时,仍然可以通过声明同名的局部变量,在本地重写名为 _open 的 Microsoft 专用函数。For example, when you include Microsoft run-time header files, you can still locally override the Microsoft-specific function named _open by declaring a local variable of the same name. 但是,不可将此名称用于您自己的全局函数或全局变量。However, you cannot use this name for your own global function or global variable.

Microsoft 专用的宏和清单常量的名称均以两个下划线(或一个后面紧跟一个大写字母的前导下划线)开头。The names of Microsoft-specific macros and manifest constants begin with two underscores, or with a single leading underscore immediately followed by an uppercase letter. 这些标识符的范围是绝对的。The scope of these identifiers is absolute. 例如,不可将 Microsoft 专用的标识符 _UPPER 用于此目的。For example, you cannot use the Microsoft-specific identifier _UPPER for this reason.

请参阅See Also