util.h
Go to the documentation of this file.00001 #ifndef UTIL_H
00002 #define UTIL_H
00003
00004
00005
00006
00007
00008
00009 #ifdef __STDC__
00010 #if __STDC__==1
00011 #define INLINE inline
00012 #else
00013 #define INLINE
00014 #endif
00015 #endif
00016
00017
00018 #ifdef HAS_INLINE
00019 #if HAS_INLINE==1
00020 #define INLINE inline
00021 #else
00022 #define INLINE
00023 #endif
00024 #endif
00025
00026
00027
00028 #ifndef INLINE
00029 #define INLINE
00030 #endif
00031
00032 int asc2num(int a);
00033 int bcd2num(char a);
00034 int min(int a, int b);
00035 int min3(int a, int b, int c);
00036 char *newmem(int number, int size);
00037 int max3(int a, int b, int c);
00038 int max(int a, int b);
00039 void brkpt();
00040
00041 #endif