Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - errno.h
Search - errno.h - List
可嵌套的C语言异常处理机制。在现代语言中,异常机制包括两个方面,即抛出异常和处理异常。在C语言程序中,异常类型一般都是靠函数的返回值和一些全局变量(如stdio.h的errno变量)来确定的,这大概算是“异常抛出”吧;处理异常最简单的办法就是终止程序,如使用exit、abort函数,虽然还有套较完备的异常处理函数setjmp和longjmp,但是,C的标准库、一般的应用库都没有应用它们,所以我们也只能在自己的开发部分有限地运用一下,而且,很多不太精通C的人,还没法把它们运用好。-C language can be nested exception handling mechanism. In modern language, the exception mechanism includes two aspects, namely, an exception is thrown and handle exceptions. In the C language program, the exception type usually rely on the return value, and some global variables (such as stdio.h the errno variable) to determine, this is probably considered " throw exception" it the easiest way to handle the exception is termination procedures, such as using exit, abort function, although there is a more complete set of exception handling functions setjmp and longjmp, however, C' s standard library, the general application of libraries do not apply them, we can only develop their own part in the limited use of what, and many people not proficient in C, not a good method to use them.
Date : 2026-01-08 Size : 138kb User : zhangking314
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.