File: die.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (25 lines) | stat: -rw-r--r-- 619 bytes parent folder | download
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
.TH die 3
.SH NAME
die \- print warning diagnostic and abort program
.SH SYNTAX
.B #include <libowfat/errmsg.h>

void \fBdie\fP(int \fIexitcode\fP, const char *\fImessage\fR, ...);
.SH DESCRIPTION

If \fIerrmsg_iam\fP was called to set the program name, \fIdie\fP will
first print that program name and a colon.

\fIdie\fP will print all its arguments to stderr (fd #2) and then call
\fIexit\fP(\fIexitcode\fP).

It does not synchronize with any other output method.

Flush \fIbuffer_1\fP and \fIbuffer_2\fP manually first if needed.

.SH NOTE

This function does not return.

.SH "SEE ALSO"
errmsg(7), buffer_flush(3)