eprintf.c File Reference

#include <stdio.h>
#include <stdlib.h>
Include dependency graph for eprintf.c:

Go to the source code of this file.


void __eprintf (const char *fmt, const char *expr, int line, const char *file)

Detailed Description

A replacement for the version of __eprintf in libgcc.a if libgcc.a is missing. This may be needed to prevent some errors in linking Solaris cc with standard gcc. In this code, this is needed with sqlite is compiled with gcc, then the rest of the code is compiled with Solaris cc.

Definition in file eprintf.c.

Function Documentation

void __eprintf ( const char *  fmt,
const char *  expr,
int  line,
const char *  file 

Print to stderr and abort.

fmt -- print format specifier (as with printf)
expr -- string to print
line -- line number
file -- file name

Definition at line 32 of file eprintf.c.

  fprintf (stderr, fmt, expr, line, file);
  fflush (stderr);

  abort ();

Here is the call graph for this function: