home *** CD-ROM | disk | FTP | other *** search
- /* $Id: main.h,v 1.6 1995/05/28 18:12:36 tom Exp $
- *
- * Title: main.h
- * Author: Thomas E. Dickey
- * Created: 29 Nov 1984
- * Last update: 28 Mar 1985, added 'status' argument to 'error'
- * 01 Dec 1984
- *
- * Function: Define miscellaneous functions which may differ when
- * implemented for a standalone main program from that used
- * in a program linked to FLIST.
- */
-
- #ifndef main_incl
- void error (int status, char *s_)
- {
- char msg[80];
-
- whoami (msg, 3);
- strcat (msg, "-f-");
- if (s_)
- printf ("%s%.60s\n", msg, s_);
- else
- perror (msg);
- exit (status);
- }
- #endif
-