summaryrefslogtreecommitdiffstats
path: root/src/check_error.c (plain)
blob: 70c62c449f01cf34cb88bfa91af84194f5c4157b
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.