C语言abort函数

C语言编程入门教程,C语言库函数的abort函数的作用是异常终止一个进程,意味着abort后面的代码将不再执行。

#include<stdio.h>
#include<stdlib.h>
int main(void)
{
 printf("Calling abort()\n");
 abort();
 return 0; /* This is never reached */
}

猜你喜欢

转载自www.cnblogs.com/xiaxue168/p/10422773.html