fatal.h

# #include "fatal.h"

This page has information from files fatal.h and fatal.c.

## Contents

- Public Routines
- Public Definitions
- Introduction

## Public Routines in File fatal.c

#### Index

bell | fatal_error | get_fatal_exit_code | set_fatal_exit_code

#### Details

    void bell(FILE *fp);

Send the bell character '\007' to a file.

    void fatal_error(char *message);

This routine should be called if something terrible happens. The message is printed to stdout and to stderr, and the process exits with the fatal_exit_code (default 1).

    int get_fatal_exit_code();

This function returns the exit code that will be used in case fatal_error() is called.

    void set_fatal_exit_code(int exit_code);

This routine changes the exit code that will be used in case fatal_error() is called. The default value is 1.

## Public Definitions in File fatal.h

## Introduction

This package is just a few utilities for handling fatal errors.