Statistiques
| Révision :

root / man / man3 / HPL_abort.3 @ 1

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

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