Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef UTILITIES_H_
00009 #define UTILITIES_H_
00010
00011 #include <stdlib.h>
00012
00013 #define BOOLEAN int
00014 #define TRUE 1
00015 #define FALSE 0
00016
00017 #define ROW_MAJOR_IDX(R, C, NCOL) ((R)*(NCOL) + (C))
00018
00019 int endsWith(char *string, char *ending);
00020 int longestName(char *filenames[], int nFiles);
00021 int lowerStrNCmp(const char *str1, const char *str2, int n);
00022
00023
00024 void stringTokenizer(char *line);
00025 char *nextToken();
00026
00027 char *constructFileName(char *basedir, char *filename);
00028
00029 char *td_malloc(size_t size);
00030
00031 void td_free(void *mem, size_t size);
00032 long getMemoryReport();
00033
00034 char *getLibraryVersion();
00035
00036 #endif