file: supplib.h
#ifndef SUPPLIB_H__
#define SUPPLIB_H__
////////////////////////////////////////////////////////////////////
//
// SuppLib.h implements some support utility functions.
//
////////////////////////////////////////////////////////////////////
#define MAX_ERROR_STRING_SIZE 255
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
inline char *CopyString(const char *string)
{
char *TempString;
TempString = new char[strlen(string)+1];
strcpy(TempString, string);
return TempString;
}
inline void SwapInt(int *Val1,
int *Val2)
{
int TempVal = *Val1;
*Val1 = *Val2;
*Val2 = TempVal;
}
void FatalError(const char *message);
#endif
// end of SuppLib.h
////////////////////////////////////////////////////////////////////
C++ to HTML Conversion by ctoohtml