Formatted error message (varargs)
#include <err.h>
void vwarn( const char *fmt,
va_list args );
void vwarnx( const char *fmt,
va_list args );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The err() and warn() family of functions display a formatted error message on stderr. For a comparison of the members of this family, see err().
The vwarn() function produces a message that consists of:
The vwarnx() function produces a similar message, except that it doesn't include the string associated with errno. The message consists of:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |