Add a slew of manual pages.
[mLib] / man / report.3
CommitLineData
b6b9d458 1.\" -*-nroff-*-
2.TH report 3mLib "20 June 1999" mLib
3.SH NAME
4report \- report errors
5.SH SYNOPSIS
6.nf
7.B "#include <mLib/report.h>"
8
9.BI "void moan(const char *" f ", ...);"
10.BI "void die(int " status ", const char *" f ", ...);"
11.fi
12.SH DESCRIPTION
13The
14.B moan
15function emits a message to the standard error stream consisting of the
16program's name (as read by the
17.B quis
18function; see
19.BR quis (3mLib) for details),
20a colon, a space, and the
21.BR printf -style
22formatted string
23.I f
24followed by a newline. This is a handy way to report nonfatal errors in
25a program.
26.PP
27The
28.B die
29function emits a message to the standard error stream, just as for
30.B moan
31above, and then calls the
32.B exit
33function with argument
34.I status
35to halt the program. This is a handy way to report fatal errors in a
36program.
37.SH SEE ALSO
38.BR exit (3),
39.BR quis (3mLib).
40.SH AUTHOR
41Mark Wooding, <mdw@nsict.org>