Text Analysis/assign3.c
void testWordLengthAnalysis(char **bufferPtr, int numOfLines, int wordLength){
    
    unsigned int numOfWords = 0;

    numOfWords = wordLengthAnalysis(bufferPtr, numOfLines, wordLength);
    const char *singleWord = "word";
    const char *pluralWord = "words";
    if(numOfWords <= 1){
        printf("%3d %-5s %s %d\n", numOfWords, singleWord, "of length", wordLength);
    }
    else{
        printf("%3d %-5s %s %d\n", numOfWords, pluralWord, "of length", wordLength);
    }
}
/*
    testWordLengthAnalysis: performs tests on the word length analysis function and prints the results
    input: an array of text (bufferPtr), the number of lines to be analysed (numOfLines), the length of a word to look for (length)
*/
performs tests on the word length analysis function and prints the results
input: an array of text (bufferPtr), the number of lines to be analysed (numOfLines), the length of a word to look for (length)
performs tests on the word length analysis function and prints the results input : an array of text ( bufferPtr ) the number of lines to be analysed ( numOfLines ) the length of a word to look for ( length )
void testWordLengthAnalysis(char **bufferPtr, int numOfLines, int wordLength){
    unsigned int numOfWords = 0;
    numOfWords = wordLengthAnalysis(bufferPtr, numOfLines, wordLength);
    const char *singleWord = "word";
    const char *pluralWord = "words";
    if(numOfWords <= 1){
        printf("%3d %-5s %s %d\n", numOfWords, singleWord, "of length", wordLength);
    }
    else{
        printf("%3d %-5s %s %d\n", numOfWords, pluralWord, "of length", wordLength);
    }
}
void testWordLengthAnalysis ( char * * bufferPtr , int numOfLines , int wordLength ) { unsigned int numOfWords = 0 ; numOfWords = wordLengthAnalysis ( bufferPtr , numOfLines , wordLength ) ; const char * singleWord = " " ; const char * pluralWord = " " ; if ( numOfWords <= 1 ) { printf ( " \n " , numOfWords , singleWord , " " , wordLength ) ; } else { printf ( " \n " , numOfWords , pluralWord , " " , wordLength ) ; } }
testWordLengthAnalysis: performs tests on the word length analysis function and prints the results
input: an array of text (bufferPtr), the number of lines to be analysed (numOfLines), the length of a word to look for (length)
testWordLengthAnalysis : performs tests on the word length analysis function and prints the results input : an array of text ( bufferPtr ) the number of lines to be analysed ( numOfLines ) the length of a word to look for ( length )