Next Previous Contents

53. SLang_exit_error

Synopsis

Exit the program and display an error message

Usage

void SLang_exit_error (char *fmt, ...)

Description

The SLang_exit_error function terminates the program and displays an error message using a printf type variable argument list. The default behavior to this function is to write the message to stderr and exit with the exit system call.

If the the function pointer SLang_Exit_Error_Hook is non-NULL, the function to which it points will be called. This permits an application to perform whatever cleanup is necessary. This hook has the prototype:

     void (*SLang_Exit_Error_Hook)(char *, va_list);
See Also

SLang_verror, exit


Next Previous Contents