ERROR - write error message and exit.

(Not in the ANSI standard)


#include <sdgstd.h>
error( control [, arg1, arg2, ...] );


char *control;
points to a control string similar to that used by "printf".


"error" writes a formatted message to "stderr", then calls "exit" to terminate the program. A status of -1 is passed to "exit" to indicate failure of the program.

"error" converts, formats, and prints its arguments under control of the string "control". For a full description of the formatting used by error, see the documentation for "printf".

Copyright © 1996, Thinkage Ltd.