client/src/unifycr.c
void unifycr_print_chunk_list(char* path)
{
#if 0
    chunk_list_t *chunk_list;
    chunk_list_t *chunk_element;

    chunk_list = unifycr_get_chunk_list(path);

    fprintf(stdout,"-------------------------------------\n");
    LL_FOREACH(chunk_list,chunk_element) {
        printf("%d,%d,%p,%ld\n",chunk_element->chunk_id,
                                chunk_element->location,
                                chunk_element->chunk_offset,
                                chunk_element->spillover_offset);
    }

    LL_FOREACH(chunk_list,chunk_element) {
        free(chunk_element);
    }
    fprintf(stdout,"\n");
    fprintf(stdout,"-------------------------------------\n");
#endif
}
/* debug function to print list of chunks constituting a file
 * and to test above function*/
debug function to print list of chunks constituting a file
and to test above function
debug function to print list of chunks constituting a file and to test above function
void unifycr_print_chunk_list(char* path)
{
#if 0
    chunk_list_t *chunk_list;
    chunk_list_t *chunk_element;
    chunk_list = unifycr_get_chunk_list(path);
    fprintf(stdout,"-------------------------------------\n");
    LL_FOREACH(chunk_list,chunk_element) {
        printf("%d,%d,%p,%ld\n",chunk_element->chunk_id,
                                chunk_element->location,
                                chunk_element->chunk_offset,
                                chunk_element->spillover_offset);
    }
    LL_FOREACH(chunk_list,chunk_element) {
        free(chunk_element);
    }
    fprintf(stdout,"\n");
    fprintf(stdout,"-------------------------------------\n");
#endif
}
void unifycr_print_chunk_list ( char * path ) { #if 0 chunk_list_t * chunk_list ; chunk_list_t * chunk_element ; chunk_list = unifycr_get_chunk_list ( path ) ; fprintf ( stdout , " \n " ) ; LL_FOREACH ( chunk_list , chunk_element ) { printf ( " \n " , chunk_element -> chunk_id , chunk_element -> location , chunk_element -> chunk_offset , chunk_element -> spillover_offset ) ; } LL_FOREACH ( chunk_list , chunk_element ) { free ( chunk_element ) ; } fprintf ( stdout , " \n " ) ; fprintf ( stdout , " \n " ) ; #endif }
debug function to print list of chunks constituting a file
 and to test above function
debug function to print list of chunks constituting a file and to test above function