#include <quintus/quintus.h>
     void QP_perror(s)
     char *s;


QP_perror() produces a short error message on the stream user_error describing the last error encountered. If s is not a NULL pointer and does not point to a null string, the string it points to is printed, followed by a colon, followed by a space, followed by the message and a NEWLINE. If s is a NULL pointer or points to a null string, just the message is printed, followed by a NEWLINE. To be of most use, the argument string should include the name of the program that incurred the error. The error number is taken from the external variable QP_errno (see cfu-rve), which is set when errors occur but not cleared when non-erroneous calls are made.

This function is modeled on the system function perror(3).

See Also