File: fatal_error.c

package info (click to toggle)
rat 4.2.20-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,888 kB
  • ctags: 3,655
  • sloc: ansic: 36,042; sh: 3,481; tcl: 2,740; makefile: 293
file content (23 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * FILE:    fatal_error.c
 *
 * Copyright (c) 2000-2001 University College London
 * All rights reserved.
 *
 * $Id: fatal_error.c,v 1.2 2001/01/08 20:30:01 ucaccsp Exp $
 */

#include <config_unix.h>
#include <config_win32.h>

#include "fatal_error.h"

void
fatal_error(const char *appname, const char *msg)
{
#ifdef WIN32
        MessageBox(NULL, msg, appname, MB_ICONERROR | MB_OK);
#else
        fprintf(stderr, "%s: %s\n", appname, msg);
#endif
}