全局常量Global Constants

Microsoft 运行库包含库例程所使用的全局常量的定义。The Microsoft run-time library contains definitions for global constants used by library routines. 若要使用这些常量,请按照每个常量的说明中所示的那样包括适当的标头文件。To use these constants, include the appropriate header files as indicated in the description for each constant. 下表列出了全局常量。The global constants are listed in the following table.

32 位 Windows 时间/日期格式32-Bit Windows Time/Date Formats BUFSIZBUFSIZ
CLOCKS_PER_SEC、CLK_TCKCLOCKS_PER_SEC, CLK_TCK Commit-To-Disk 常量Commit-To-Disk Constants
_CRT_DISABLE_PERFCRIT_LOCKS_CRT_DISABLE_PERFCRIT_LOCKS 数据类型常量Data Type Constants
环境常量Environmental Constants EOF、WEOFEOF, WEOF
errno 常量errno Constants 异常处理常量Exception-Handling Constants
EXIT_SUCCESS、EXIT_FAILUREEXIT_SUCCESS, EXIT_FAILURE 文件特性常量File Attribute Constants
文件常量File Constants 文件权限常量File Permission Constants
文件读/写权限常量File Read/Write Access Constants 文件转换常量File Translation Constants
FILENAME_MAXFILENAME_MAX FOPEN_MAX、_SYS_OPENFOPEN_MAX, _SYS_OPEN
_FREEENTRY、USEDENTRY_FREEENTRY, _USEDENTRY fseek、_lseek 常量fseek, _lseek Constants
堆常量Heap Constants _HEAP_MAXREQ_HEAP_MAXREQ
HUGE_VAL、_HUGEHUGE_VAL, _HUGE 区域设置类别Locale Categories
_locking 常量_locking Constants 数学常量Math Constants
数学错误常量Math Error Constants _MAX_ENV_MAX_ENV
MB_CUR_MAXMB_CUR_MAX NULLNULL
路径字段限制Path Field Limits RAND_MAXRAND_MAX
setvbuf 常量setvbuf Constants 共享常量Sharing Constants
signal 常量signal Constants signal 操作常量signal Action Constants
spawn 常量spawn Constants _stat 结构 st_mode 字段常量_stat Structure st_mode Field Constants
stdin、stdout、stderrstdin, stdout, stderr TMP_MAX、L_tmpnamTMP_MAX, L_tmpnam
转换模式常量Translation Mode Constants _TRUNCATE_TRUNCATE
TZNAME_MAXTZNAME_MAX _WAIT_CHILD、_WAIT_GRANDCHILD_WAIT_CHILD, _WAIT_GRANDCHILD
WCHAR_MAXWCHAR_MAX WCHAR_MINWCHAR_MIN

另请参阅See Also

C 运行时库参考 C Run-Time Library Reference
全局变量 Global Variables
有关编写 Prolog/Epilog 代码的注意事项Considerations for Writing Prolog/Epilog Code