.B #include <error.h>
.P
.BI "void error(int " status ", int " errnum ", const char *" format ", ...);"
-.BI "void error_at_line(int " status ", int " errnum ", const char *" filename ,
-.BI " unsigned int " linenum ", const char *" format ", ...);"
+.BI "void error_at_line(int " status ", int " errnum ", const char *" file ,
+.BI " unsigned int " line ", const char *" format ", ...);"
.P
.BI "extern unsigned int " error_message_count ;
.BI "extern int " error_one_per_line ;
function is exactly the same as
.BR error (),
except for the addition of the arguments
-.I filename
+.I file
and
-.IR linenum .
+.IR line .
The output produced is as for
.BR error (),
except that after the program name are written: a colon, the value of
-.IR filename ,
+.IR file ,
a colon, and the value of
-.IR linenum .
+.IR line .
The preprocessor values
.B __LINE__
and
.BR error_at_line ()
calls with the
same value of
-.I filename
+.I file
and
-.I linenum
+.I line
will result in only
one message (the first) being output.
.P
.nf
.B #include <mcheck.h>
.P
-.BI "int mcheck(typeof(void (enum mcheck_status " mstatus ")) *" abortfunc );
+.BI "int mcheck(typeof(void (enum mcheck_status " mstatus ")) *" f );
.B "int mcheck_pedantic("
-.BI " typeof(void (enum mcheck_status " mstatus ")) *" abortfunc );
+.BI " typeof(void (enum mcheck_status " mstatus ")) *" f );
.B void mcheck_check_all(void);
.P
.BI "enum mcheck_status mprobe(void *" ptr );
.P
If the system detects an inconsistency in the heap,
the caller-supplied function pointed to by
-.I abortfunc
+.I f
is invoked with a single argument,
.IR mstatus ,
that indicates what type of inconsistency was detected.
If
-.I abortfunc
+.I f
is NULL, a default function prints an error message on
.I stderr
and calls
or passed as the
.I mstatus
argument when
-.I abortfunc
+.I f
is invoked:
.TP
.BR MCHECK_DISABLED " (" mprobe "() only)"