util.h

Go to the documentation of this file.
00001 // Copyright (C) 2006 Bryan Jacobson <bryanjacobson@users.sourceforge.net>
00002 // This program is licensed under the terms of the GNU General Public License
00003 // version 2, as published by the Free Software Foundation.
00004 // This program is distributed in the hope that it will be useful,
00005 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00006 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007 
00008 #ifndef UTIL_H
00009 #define UTIL_H
00010 
00014 
00015 // Need to include <cstdio> because we use FILE type.
00016 #include <cstdio>
00017 
00019 extern void Error(bool condition, char *message);
00020 extern void Error(bool condition, char *message, char *a1);
00021 
00023 extern void Mesg(char *message);
00024 extern void Mesg(char *message, char *a1);
00025 extern void Mesg(char *message, int a1);
00026 
00028 extern void PrintNumber(double d);
00029 
00031 extern FILE *FileOpen(char *fileName, char *mode);
00032 
00034 const int MAX_LINE = 40000;
00035 
00040 extern char *GetLine(FILE *fp);
00041 
00043 extern bool HasDigits(char *s);
00044 
00046 void Sort(void *array[], int size, int (*compare)(void *, void *));
00047 
00049 void StrLower(char *p);
00050 
00052 bool IsNormalChar(char c);
00053 
00054 #endif // UTIL_H

Generated on Sun Oct 8 09:32:09 2006 for gabbie by  doxygen 1.4.6