Reserved Names |
|
|
The names of all library types, macros, variables and functions that come from
the ISO C standard are reserved unconditionally; your program may not redefine
these names. All other library names are reserved if your program explicitly
includes the header file that defines or declares them. There are several
reasons for these restrictions:
Other people reading your code could get very confused if you were using a function named exit to do something completely different from what the standard exit function does, for example. Preventing this situation helps to make your programs easier to understand and contributes to modularity and maintainability.
It avoids the possibility of a user accidentally redefining a library function that is called by other library functions. If redefinition were allowed, those other functions would not work properly.
It allows the compiler to do whatever special optimizations it pleases on calls to these functions, without the possibility that the < 1 > < 2 > |
|
|
在百度搜索:Reserved Names
|