stdlib.h——void abort ( void ); int atoi ( const char * str );

来源:互联网 发布:高顿网校cpa价格知乎 编辑:程序博客网 时间:2024/06/05 20:48


/* abort example */#include <stdio.h>#include <stdlib.h>int main (){  FILE * pFile;  pFile= fopen ("myfile.txt","r");  if (pFile == NULL)   {    fputs ("error opening file\n",stderr);    abort();  }  /* regular process here */  fclose (pFile);  return 0;}

error opening fileAbort(coredump)



原创粉丝点击