summaryrefslogtreecommitdiffstats
path: root/src/error/check_error.c (plain)
blob: 4630b50c5bf7c9338072d1b0f7fbe9c49625f547
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "check_error.h"
#include <error.h>
#include <errno.h>
#include <stdlib.h>

void
check_error (const char *filename, const unsigned int linenum)
{
  if (errno)
    error_at_line (EXIT_FAILURE, errno, filename, linenum,
		   "An error has been detected within the application.");

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.