void abort( void );
サンプルです。
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
FILE *fp;
if( (fp = fopen( "test.txt", "r" )) == NULL )
{
perror( "fopen関数失敗" );
getch();
abort();
}else{
fclose( fp );
}
return 0;
}