File: error_handlers.c

package info (click to toggle)
scantool 2.1-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,168 kB
  • sloc: ansic: 5,576; makefile: 104; python: 41
file content (16 lines) | stat: -rw-r--r-- 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <string.h>
#include "globals.h"
#include "error_handlers.h"


char temp_error_buf[256];

void fatal_error(char *msg)
{
   if (datafile != NULL)
      unload_datafile(datafile);

   allegro_message("\nERROR: %s\n", msg);
   
   exit(EXIT_FAILURE);
}