NAME

wav_error - Print an error message

SYNOPSIS

#include "wiodef.h"
void wav_error (int condition, char *prog, char *message)

DESCRIPTION

wav_error() prints an error message that can be displayed on the local architecture. condition refers to the severity of the error. The error message will be prepended with a one-word description of the severity. The possible values and their corresponding printed descriptions are:
W_E_INFO
" (information): "
W_E_WARN
" (warning): "
W_E_ERR
" (error): "
default
" (glitch): "
prog is a null-terminated string that is printed first to inform the user where the error occurred. message is a null-terminated string of any length describing the problem.

EXAMPLES

The line:
wav_error (W_E_ERR, "opnwav", "File not found");
produces the message:
opnwav (error): File not found

The lines:
sprintf (err_msg, "File: (%s) is write_protected.", filename); wav_error (W_E_INFO, "PLAY", err_msg);
produce the message:
PLAY (information): File (demo.wav) is write-protected.

SEE ALSO

sprintf (3v),
Libcwav library

AUTHOR

H.T.Bunnell, Keith Taylor