ERROR
NAME
error - print error message and quit
SYNOPSIS
extern char *progname;
void error(format [ ,arg ] ... )
char *str1;
DESCRIPTION
error
prints a message to to the standard error and then terminates the current process.
The message is prefixed with "sfs:" or the contents of the global variable "progname" if
declared. The text of the message is made up from
str1
and
args,
if present, with
str1
containing the "printf" style format for the message, and
str2
the coorresponding arguments.
error
also deletes any temporary files created with
sfschannel
(see SFSLIB(SFS3)).
EXAMPLE
#define PROGNAME "yourprog"
char *progname=PROGNAME;
:
error("cannot open file %s",filename);
:
error("process fails");
VERSION/AUTHOR
1.1 - Mark Huckvale
Fri Jul 09 14:54:16 2004