Statistiques
| Révision :

root / www / HPL_abort.html

Historique | Voir | Annoter | Télécharger (1,59 ko)

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_abort 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_abort</B> halts execution.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_abort(</CODE>
16
<CODE>int</CODE>
17
<CODE>LINE</CODE>,
18
<CODE>const char *</CODE>
19
<CODE>SRNAME</CODE>,
20
<CODE>const char *</CODE>
21
<CODE>FORM</CODE>,
22
<CODE>...</CODE>
23
<CODE>);</CODE>
24

    
25
<H1>Description</H1>
26
<B>HPL_abort</B>
27
displays an error message on stderr and halts execution.
28

    
29
<H1>Arguments</H1>
30
<PRE>
31
LINE    (local input)                 int
32
        On entry,  LINE  specifies the line  number in the file where
33
        the  error  has  occured.  When  LINE  is not a positive line
34
        number, it is ignored.
35
</PRE>
36
<PRE>
37
SRNAME  (local input)                 const char *
38
        On entry, SRNAME  should  be the name of the routine  calling
39
        this error handler.
40
</PRE>
41
<PRE>
42
FORM    (local input)                 const char *
43
        On entry, FORM specifies the format, i.e., how the subsequent
44
        arguments are converted for output.
45
</PRE>
46
<PRE>
47
        (local input)                 ...
48
        On entry,  ...  is the list of arguments to be printed within
49
        the format string.
50
</PRE>
51

    
52
<H1>Example</H1>
53
<CODE>#include "hpl.h"</CODE><BR><BR>
54
<PRE>
55
int main(int argc, char *argv[])
56
{
57
   HPL_abort( __LINE__, __FILE__, "Halt.\n" );
58
   exit(0); return(0);
59
}
60
</PRE>
61

    
62
<H1>See Also</H1>
63
<A HREF="HPL_fprintf.html">HPL_fprintf</A>,
64
<A HREF="HPL_warn.html">HPL_warn</A>.
65

    
66
</BODY>
67
</HTML>