Back to index

tetex-bin  3.0
Defines | Functions
xexit.c File Reference
#include "system.h"

Go to the source code of this file.

Defines

#define EXIT_SUCCESS   0
#define EXIT_FAILURE   1

Functions

void xexit (int exit_status)

Define Documentation

#define EXIT_FAILURE   1

Definition at line 39 of file xexit.c.

#define EXIT_SUCCESS   0

Definition at line 38 of file xexit.c.


Function Documentation

void xexit ( int  exit_status)

Definition at line 50 of file xexit.c.

{
  if (ferror (stdout))
    {
      fputs (_("ferror on stdout\n"), stderr);
      exit_status = 1;
    }
  else if (fflush (stdout) != 0)
    {
      fputs (_("fflush error on stdout\n"), stderr);
      exit_status = 1;
    }

  exit_status = exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE;

  exit (exit_status);
}

Here is the call graph for this function:

Here is the caller graph for this function: