Functions | |
int | endsWith (char *string, char *ending) |
int | longestName (char *filenames[], int nFiles) |
int | lowerStrNCmp (const char *str1, const char *str2, int n) |
void | stringTokenizer (char *line) |
char * | nextToken () |
char * | constructFileName (char *basedir, char *filename) |
char * | td_malloc (size_t size) |
void | td_free (void *mem, size_t size) |
long | getMemoryReport () |
char * | getLibraryVersion () |
Variables | |
static int | parserIdx = -1 |
static char * | parserLine = NULL |
static int | parserLineLength = -1 |
static long | MemoryInUse = 0 |
char* constructFileName | ( | char * | basedir, | |
char * | filename | |||
) |
int endsWith | ( | char * | string, | |
char * | ending | |||
) |
char* getLibraryVersion | ( | ) |
long getMemoryReport | ( | ) |
int longestName | ( | char * | filenames[], | |
int | nFiles | |||
) |
int lowerStrNCmp | ( | const char * | str1, | |
const char * | str2, | |||
int | n | |||
) |
Compare two string up to n characters. Comparison is done with lowercase version of each string.
[in] | str1 | A string to compare. |
[in] | str2 | Another string to compare. |
[in] | n | maximum number of characters to compare. |
char* nextToken | ( | ) |
stringTokenizer and nextToken work together to parse a character string into tokens, separated by spaces. nextToken finds the next set of non-white space characters, which is considered a token.
void stringTokenizer | ( | char * | line | ) |
stringTokenizer and nextToken work together to parse a character string into tokens, separated by spaces. stringTokenizer intializes variables for breaking a string into tokens.
[in] | line | The string to break into words. |
void td_free | ( | void * | mem, | |
size_t | size | |||
) |
char* td_malloc | ( | size_t | size | ) |
long MemoryInUse = 0 [static] |
int parserIdx = -1 [static] |
char* parserLine = NULL [static] |
int parserLineLength = -1 [static] |