PostgreSQL Source Code: src/tools/pg_bsd_indent/err.c Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33#include "c.h"
34
36#include <errno.h>
37#include <stdarg.h>
38#include <stdio.h>
39#include <stdlib.h>
41
42void
43err(int eval, const char *fmt, ...)
44{
45 int code = errno;
46 va_list ap;
47 va_start(ap, fmt);
48 if (fmt != NULL) {
51 }
53 va_end(ap);
54 exit(eval);
55}
56
57void
58errx(int eval, const char *fmt, ...)
59{
60 va_list ap;
61 va_start(ap, fmt);
62 if (fmt != NULL)
65 va_end(ap);
66 exit(eval);
67}
#define fprintf(file, fmt, msg)
void err(int eval, const char *fmt,...)
void errx(int eval, const char *fmt,...)