Text Analysis/assign3.c
char* make1DArrayFrom2D(char *destination, char **source, int numOfLines){
    
    strcpy(destination, source[0]); //copies first string in the buffer for subsequent concatenation
   
    //concatenates all the strings together 
    for(unsigned int i = 1; i < numOfLines; i++){
        strcat(destination, source[i]);
    }
    
    return destination;
}
/*
    make1DArrayFrom2D: creates a 1D string array from a 2D string array using concatenation
    input: an array to store the results in (destination), an array of text (source), the number of lines to be analysed (numOfLines)
    output: the 1D string array containing the data
*/
creates a 1D string array from a 2D string array using concatenation
input: an array to store the results in (destination), an array of text (source), the number of lines to be analysed (numOfLines)
output: the 1D string array containing the data
creates a 1D string array from a 2D string array using concatenation input : an array to store the results in ( destination ) an array of text ( source ) the number of lines to be analysed ( numOfLines ) output : the 1D string array containing the data
char* make1DArrayFrom2D(char *destination, char **source, int numOfLines){
    strcpy(destination, source[0]); 
    for(unsigned int i = 1; i < numOfLines; i++){
        strcat(destination, source[i]);
    }
    return destination;
}
char * make1DArrayFrom2D ( char * destination , char * * source , int numOfLines ) { strcpy ( destination , source [ 0 ] ) ; for ( unsigned int i = 1 ; i < numOfLines ; i ++ ) { strcat ( destination , source [ i ] ) ; } return destination ; }
make1DArrayFrom2D: creates a 1D string array from a 2D string array using concatenation
input: an array to store the results in (destination), an array of text (source), the number of lines to be analysed (numOfLines)
output: the 1D string array containing the data
make1DArrayFrom2D : creates a 1D string array from a 2D string array using concatenation input : an array to store the results in ( destination ) an array of text ( source ) the number of lines to be analysed ( numOfLines ) output : the 1D string array containing the data
//copies first string in the buffer for subsequent concatenation //concatenates all the strings together 