Function die

Synopsis

#include <examples/utils.h>

void die(const char *fmt,...)

Description

No description yet.

Mentioned in

Source

Lines 48-55 in examples/utils.c. Line 39 in examples/utils.h.

void die(const char *fmt, ...) {
  va_list ap;
  va_start(ap, fmt);
  vfprintf(stderr, fmt, ap);
  va_end(ap);
  fprintf(stderr, "\n");
  exit(1);
}





Add Discussion as Guest

Log in to DocsForge