C语言库文件

C语言中提供了丰富的系统文件,也可称为库文件。C 语言的库文件分为两类,第一类是扩展名为".h" 的头文件,包含常量定 义、 类型定义、宏定义、函数原型以及各种编译选择设置等信息,第二类是函数库,包括了各种函数的目标代码,供用户在程序中调用。 通常在程序中调用一个库函数时,要在调用之前包含该函数原型所在的".h" 文件。

下面给出 Turbo C 的全部".h"文件。

头文件功能
ALLOC.H说明内存管理函数(分配、释放等)。 
ASSERT.H定义 assert 调试宏
BIOS.H说明调用 IBM—PC ROM BIOS 子程序的各个函数。
CONIO.H说明调用 DOS 控制台 I/O 子程序的各个函数。
CTYPE.H 包含有关字符分类及转换的名类信息(如 isalpha 和 toascii 等)。 
DIR.H 包含有关目录和路径的结构、宏定义和函数。 
DOS.H 定义和说明 MSDOS 和 8086 调用的一些常量和函数。 
ERRON.H定义错误代码的助记符。 
FCNTL.H 定义在与 open 库子程序连接时的符号常量。 
FLOAT.H 包含有关浮点运算的一些参数和函数。 
GRAPHICS.H说明有关图形功能的各个函数,图形错误代码的常量定义,正对不同 驱动程序的各种颜色值,及函数用到的一些特殊结构。 
IO.H包含低级 I/O 子程序的结构和说明。 
LIMIT.H包含各环境参数、编译时间限制、数的范围等信息。 
MATH.H 说明数学运算函数,还定了 HUGE  VAL 宏, 说明了 matherr 和 matherr 子程序用到的特殊结构。
MEM.H说明一些内存操作函数(其中大多数也在 STRING.H 中说明)。 
PROCESS.H 说明进程管理的各个函数。
SETJMP.H定义 longjmp 和 setjmp 函数用到的 jmp buf 类型,说明这两个函数。 
SHARE.H 定义文件共享函数的参数。 
SIGNAL.H 定义 SIG[ZZ(Z]  [ZZ)]IGN 和 SIG[ZZ(Z]  [ZZ)]DFL 常量,说明 rajse 和 signal 两个函数。 
STDARG.H 定义读函数参数表的宏。(如 vprintf,vscarf 函数)。 
STDDEF.H 定义一些公共数据类型和宏。 
STDIO.H 定义 Kernighan 和 Ritchie 在 Unix System V 中定义的标准和扩展的类型和宏。还定义标准 I/O 预定义流:stdin,stdout 和 stderr,说明 I/O 流子程序。
STDLIB.H 说明一些常用的子程序:转换子程序、搜索/ 排序子程序等。
STRING.H说明一些串操作和内存操作函数。 
SYS\STAT.H 定义在打开和创建文件时用到的一些符号常量。 
SYS\TYPES.H说明 ftime 函数和 timeb 结构。 
SYS\TIME.H定义时间的类型 time[ZZ(Z]  [ZZ)]t。 
TIME.H 定义时间转换子程序 asctime、localtime 和 gmtime 的结构,ctime、  difftime、 gmtime、 localtime 和 stime 用到的类型,并提供这些函数的原型。
VALUE.H定义一些重要常量,包括依赖于机器硬件的和为与 Unix System V 相兼容而说明的一些常量,包括浮点和双精度值的范围。 

 

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
听说这个有用 The following are typedefs of fundamental integral types or extended integral types. signed type unsigned type description intmax_t uintmax_t Integer type with the maximum width supported. int8_t uint8_t Integer type with a width of exactly 8, 16, 32, or 64 bits. For signed types, negative values are represented using 2's complement. No padding bits. Optional: These typedefs are not defined if no types with such characteristics exist.* int16_t uint16_t int32_t uint32_t int64_t uint64_t int_least8_t uint_least8_t Integer type with a minimum of 8, 16, 32, or 64 bits. No other integer type exists with lesser size and at least the specified width. int_least16_t uint_least16_t int_least32_t uint_least32_t int_least64_t uint_least64_t int_fast8_t uint_fast8_t Integer type with a minimum of 8, 16, 32, or 64 bits. At least as fast as any other integer type with at least the specified width. int_fast16_t uint_fast16_t int_fast32_t uint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t Integer type capable of holding a value converted from a void pointer and then be converted back to that type with a value that compares equal to the original pointer. Optional: These typedefs may not be defined in some library implementations.* Some of these typedefs may denote the same types. Therefore, function overloads should not rely on these being different. * Notice that some types are optional (and thus, with no portability guarantees). A particular library implementation may also define additional types with other widths supported by its system. In any case, if either the signed or the unsigned version is defined, both the signed and unsigned versions are defined.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值