table of contents
other versions
- wheezy 3.44-1
- jessie 3.74-1
- jessie-backports 4.10-2~bpo8+1
- testing 4.10-2
- unstable 4.10-2
other sections
ERROR(3) | Linux Programmer's Manual | ERROR(3) |
NAME¶
error, error_at_line, error_message_count, error_one_per_line, error_print_progname - glibc error reporting functionsSYNOPSIS¶
#include <error.h> void error(int status, int errnum, const char *format, ...); void error_at_line(int status, int errnum, const char *filename, unsigned int linenum, const char *format, ...); extern unsigned int error_message_count; extern int error_one_per_line; extern void (* error_print_progname) (void);
DESCRIPTION¶
error() is a general error-reporting function. It flushes stdout, and then outputs to stderr the program name, a colon and a space, the message specified by the printf(3)-style format string format, and, if errnum is nonzero, a second colon and a space followed by the string given by strerror(errnum). Any arguments required for format should follow format in the argument list. The output is terminated by a newline character.CONFORMING TO¶
These functions and variables are GNU extensions, and should not be used in programs intended to be portable.SEE ALSO¶
err(3), errno(3), exit(3), perror(3), program_invocation_name(3), strerror(3)COLOPHON¶
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.2010-08-29 | GNU |