c语言函数库英文,c语言函数库-第一章(C标准库)(国外英语资料).doc

c语言函数库-第一章(C标准库)(国外英语资料)

c语言函数库-第一章(C标准库)(国外英语资料)

C language library

Chapter 1 (C Standard Library)

1. : diagnosis

2. : character category testing

3. : error handling

4. : integer constant

5. : Regional Environment

6. : mathematical function

7. : non local jump

8. : signal

9. : variable parameter table

10. : public definition

11. : I / O

12. : utility function

13. : date and time function

1. : diagnosis

defines only a macro assert with a reference, which is defined as follows:

Void assert (int expression)

The assert macro is used to add diagnostic features to a program, which can test a condition and possibly terminate the program. Execute statement:

Assert (expression);

When the expression is 0, a message is displayed at the terminal:

Assertion failed: 0, file source file name, line line number

Abnormal program termination

Then invoke the abort to terminate the execution of the program.

In , the macro assert is defined as conditional compilation, and if the macro NDEBUG is defined in the source file, the assert macro will be ignored even if the header file is included.

2. : character category testing

Functions that define test characters are defined in header file . In these functions, the arguments for each function are integer int, and each parameter is either EOF or char type. The list of standard functions defined in is as follows:

Functions defined in

Function definition, function brief introduction

Int isalnum (int c) to check whether the characters are letters or numbers

Int isalpha (int c) to check if the characters are letters

Int isascii (int c) to check whether the characters are ASCII code

Int iscntrl (int c) to check whether the characters are control characters

Int isDigit (int c) to check whether the characters are numeric characters

Int isgraph (int c) to check whether the c

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值