


ERROR(SFS3)       MISC. REFERENCE MANUAL PAGES        ERROR(SFS3)



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  "prog-
     name"  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 sfschan-
     nel (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

SOURCE
     /ptemp/mark/sfs/libsfs/error.c



















SFS                     Last change: UCL                        1



