MCPcopy Create free account
hub / github.com/MariaDB/server / die

Function die

scripts/comp_sql.c:43–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41FILE *in, *out;
42
43static void die(const char *fmt, ...)
44{
45 va_list args;
46
47 /* Print the error message */
48 fprintf(stderr, "FATAL ERROR: ");
49 if (fmt)
50 {
51 va_start(args, fmt);
52 vfprintf(stderr, fmt, args);
53 va_end(args);
54 }
55 else
56 fprintf(stderr, "unknown error");
57 fprintf(stderr, "\n");
58 fflush(stderr);
59
60 /* Close any open files */
61 if (in)
62 fclose(in);
63 if (out)
64 fclose(out);
65
66 exit(1);
67}
68
69char *fgets_fn(char *buffer, size_t size, fgets_input_t input, int *error)
70{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected