/* * =================================================================== * miscellaneous.h : Header file for miscellaneous routines * * Copyright (C) 1995-1998. * * This software is provided "as is" without express or implied warranty. * Permission is granted to use this software on any computer system, * and to redistribute it freely, subject to the following restrictions: * * 1. The authors are not responsible for the consequences of use of * this software, even if they arise from defects in the software. * 2. The origin of this software must not be misrepresented, either * by explicit claim or by omission. * 3. Altered versions must be plainly marked as such, and must not * be misrepresented as being the original software. * 4. This notice is to remain intact. * * Written by: Mark Austin June 1995 * =================================================================== */ #ifndef _MISCELLANEOUS_H #define _MISCELLANEOUS_H #include /* Constants and enums for program */ enum { MaxFile = 100, MaxChar = 70 }; /* Declarations for Miscellaneous Functions */ #ifdef __STDC__ void * safeMalloc( unsigned int , char * , int ); void * safeCalloc( unsigned int , unsigned int , char * , int ); char * saveString( char * , char *, int ); void fatalError( char * , ... ); void checkFile( FILE * ); #else /* case not STDC */ void * safeMalloc(); void * safeCalloc(); char * saveString(); void fatalError(); void checkFile(); #endif /* end case STDC */ #endif /* end case MISCELLANEOUS_H */