Main Page
Namespaces
Classes
Files
File List
File Members
src
eprintf.c
Go to the documentation of this file.
1
#include "
LKH.h
"
2
#include <stdarg.h>
3
4
/*
5
* The eprintf function prints an error message and exits.
6
*/
7
8
void
eprintf
(
const
char
*fmt, ...)
9
{
10
va_list args;
11
12
if
(
LastLine
&& *
LastLine
)
13
fprintf(stderr,
"\n%s\n"
,
LastLine
);
14
fprintf(stderr,
"\n*** Error ***\n"
);
15
va_start(args, fmt);
16
vfprintf(stderr, fmt, args);
17
va_end(args);
18
fprintf(stderr,
"\n"
);
19
exit(EXIT_FAILURE);
20
}
LastLine
char * LastLine
Definition:
LKH.h:214
eprintf
void eprintf(const char *fmt,...)
Definition:
eprintf.c:8
LKH.h
glkh_solver
Author(s): Francisco Suarez-Ruiz
autogenerated on Mon Jun 10 2019 13:50:26