root / www / HPL_warn.html @ 9
Historique | Voir | Annoter | Télécharger (1,74 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_warn HPL 2.0 Library Functions September 10, 2008</TITLE> |
4 |
</HEAD>
|
5 |
|
6 |
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099" |
7 |
ALINK = "#ffff00"> |
8 |
|
9 |
<H1>Name</H1> |
10 |
<B>HPL_warn</B> displays an error message. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>void</CODE> |
15 |
<CODE>HPL_warn(</CODE> |
16 |
<CODE>FILE *</CODE> |
17 |
<CODE>STREAM</CODE>, |
18 |
<CODE>int</CODE> |
19 |
<CODE>LINE</CODE>, |
20 |
<CODE>const char *</CODE> |
21 |
<CODE>SRNAME</CODE>, |
22 |
<CODE>const char *</CODE> |
23 |
<CODE>FORM</CODE>, |
24 |
<CODE>...</CODE> |
25 |
<CODE>);</CODE> |
26 |
|
27 |
<H1>Description</H1> |
28 |
<B>HPL_warn</B> |
29 |
displays an error message. |
30 |
|
31 |
<H1>Arguments</H1> |
32 |
<PRE>
|
33 |
STREAM (local input) FILE * |
34 |
On entry, STREAM specifies the output stream. |
35 |
</PRE>
|
36 |
<PRE>
|
37 |
LINE (local input) int |
38 |
On entry, LINE specifies the line number in the file where |
39 |
the error has occured. When LINE is not a positive line |
40 |
number, it is ignored. |
41 |
</PRE>
|
42 |
<PRE>
|
43 |
SRNAME (local input) const char * |
44 |
On entry, SRNAME should be the name of the routine calling |
45 |
this error handler. |
46 |
</PRE>
|
47 |
<PRE>
|
48 |
FORM (local input) const char * |
49 |
On entry, FORM specifies the format, i.e., how the subsequent |
50 |
arguments are converted for output. |
51 |
</PRE>
|
52 |
<PRE>
|
53 |
(local input) ... |
54 |
On entry, ... is the list of arguments to be printed within |
55 |
the format string. |
56 |
</PRE>
|
57 |
|
58 |
<H1>Example</H1> |
59 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
60 |
<PRE>
|
61 |
int main(int argc, char *argv[]) |
62 |
{ |
63 |
HPL_warn( stderr, __LINE__, __FILE__, |
64 |
"Demo.\n" ); |
65 |
exit(0); return(0); |
66 |
} |
67 |
</PRE>
|
68 |
|
69 |
<H1>See Also</H1> |
70 |
<A HREF="HPL_abort.html">HPL_abort</A>, |
71 |
<A HREF="HPL_fprintf.html">HPL_fprintf</A>. |
72 |
|
73 |
</BODY>
|
74 |
</HTML>
|