home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-28  |  571 b   |  28 lines

  1. /* $Id: main.h,v 1.6 1995/05/28 18:12:36 tom Exp $
  2.  *
  3.  * Title:    main.h
  4.  * Author:    Thomas E. Dickey
  5.  * Created:    29 Nov 1984
  6.  * Last update:    28 Mar 1985, added 'status' argument to 'error'
  7.  *        01 Dec 1984
  8.  *
  9.  * Function:    Define miscellaneous functions which may differ when
  10.  *        implemented for a standalone main program from that used
  11.  *        in a program linked to FLIST.
  12.  */
  13.  
  14. #ifndef    main_incl
  15. void error (int status, char *s_)
  16. {
  17.     char    msg[80];
  18.  
  19.     whoami (msg, 3);
  20.     strcat (msg, "-f-");
  21.     if (s_)
  22.         printf ("%s%.60s\n", msg, s_);
  23.     else
  24.         perror (msg);
  25.     exit (status);
  26. }
  27. #endif
  28.