root / man / man3 / HPL_warn.3
Historique | Voir | Annoter | Télécharger (1,31 ko)
1 |
.TH HPL_warn 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions" |
---|---|
2 |
.SH NAME |
3 |
HPL_warn \- displays an error message. |
4 |
.SH SYNOPSIS |
5 |
\fB\&#include "hpl.h"\fR |
6 |
|
7 |
\fB\&void\fR |
8 |
\fB\&HPL_warn(\fR |
9 |
\fB\&FILE *\fR |
10 |
\fI\&STREAM\fR, |
11 |
\fB\&int\fR |
12 |
\fI\&LINE\fR, |
13 |
\fB\&const char *\fR |
14 |
\fI\&SRNAME\fR, |
15 |
\fB\&const char *\fR |
16 |
\fI\&FORM\fR, |
17 |
\fB\&...\fR |
18 |
\fB\&);\fR |
19 |
.SH DESCRIPTION |
20 |
\fB\&HPL_warn\fR |
21 |
displays an error message. |
22 |
.SH ARGUMENTS |
23 |
.TP 8 |
24 |
STREAM (local input) FILE * |
25 |
On entry, STREAM specifies the output stream. |
26 |
.TP 8 |
27 |
LINE (local input) int |
28 |
On entry, LINE specifies the line number in the file where |
29 |
the error has occured. When LINE is not a positive line |
30 |
number, it is ignored. |
31 |
.TP 8 |
32 |
SRNAME (local input) const char * |
33 |
On entry, SRNAME should be the name of the routine calling |
34 |
this error handler. |
35 |
.TP 8 |
36 |
FORM (local input) const char * |
37 |
On entry, FORM specifies the format, i.e., how the subsequent |
38 |
arguments are converted for output. |
39 |
.TP 8 |
40 |
(local input) ... |
41 |
On entry, ... is the list of arguments to be printed within |
42 |
the format string. |
43 |
.SH EXAMPLE |
44 |
\fI\&#include "hpl.h"\fR |
45 |
|
46 |
int main(int argc, char *argv[]) |
47 |
.br |
48 |
{ |
49 |
.br |
50 |
HPL_warn( stderr, __LINE__, __FILE__, |
51 |
.br |
52 |
"Demo.\en" ); |
53 |
.br |
54 |
exit(0); return(0); |
55 |
.br |
56 |
} |
57 |
.SH SEE ALSO |
58 |
.BR HPL_abort \ (3), |
59 |
.BR HPL_fprintf \ (3). |