Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d8f87d745f
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (23 sloc) 0.411 kb
#include "libtrading/die.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
void do_die(const char *format, ...)
{
va_list ap;
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
printf("\n");
exit(EXIT_FAILURE);
}
void error(const char *format, ...)
{
va_list ap;
printf("error: ");
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
printf("\n");
exit(EXIT_FAILURE);
}
Jump to Line
Something went wrong with that request. Please try again.