Back to index

nagios-plugins  1.4.16
Defines | Functions
xalloc-die.c File Reference
#include <config.h>
#include "xalloc.h"
#include <stdlib.h>
#include "error.h"
#include "exitfail.h"
#include "gettext.h"

Go to the source code of this file.


#define _(msgid)   gettext (msgid)


void xalloc_die (void)

Define Documentation

#define _ (   msgid)    gettext (msgid)

Definition at line 29 of file xalloc-die.c.

Function Documentation

void xalloc_die ( void  )

Definition at line 32 of file xalloc-die.c.

  error (exit_failure, 0, "%s", _("memory exhausted"));

  /* The `noreturn' cannot be given to error, since it may return if
     its first argument is 0.  To help compilers understand the
     xalloc_die does not return, call abort.  Also, the abort is a
     safety feature if exit_failure is 0 (which shouldn't happen).  */
  abort ();

Here is the call graph for this function:

Here is the caller graph for this function: