src/struct.c
//swaps the data of the fPath element
swaps the data of the fPath element
swaps the data of the fPath element
void swapfPath(fPath *a, fPath *b){
    char *dir = a->directory;
    char *path = a->path; 
    int fileOccur = a->fileOccurrences;
    fPosition *p = a->position;
    a->directory = b->directory;
    a->path = b->path;
    a->fileOccurrences = b->fileOccurrences;
    a->position = b->position;
    b->directory = dir;
    b->path = path;
    b->fileOccurrences = fileOccur;
    b->position = p;
}
void swapfPath ( fPath * a , fPath * b ) { char * dir = a -> directory ; char * path = a -> path ; int fileOccur = a -> fileOccurrences ; fPosition * p = a -> position ; a -> directory = b -> directory ; a -> path = b -> path ; a -> fileOccurrences = b -> fileOccurrences ; a -> position = b -> position ; b -> directory = dir ; b -> path = path ; b -> fileOccurrences = fileOccur ; b -> position = p ; }
swaps the data of the fPath element
swaps the data of the fPath element