func: void *toCap (void *data) struct stonesoup_data * stonesoupData = ( struct stonesoup_data * ) data ; int * stonesoup_arr ; stonesoup_arr = malloc ( sizeof ( int ) * stonesoupData -> qsize ); stonesoup_arr [ stonesoup_i ] = stonesoupData -> qsize - stonesoup_i; qsort ( stonesoup_arr , stonesoupData -> qsize , sizeof ( int ) , & stonesoup_comp ); free ( stonesoup_arr ); for(stonesoup_i = 0; stonesoup_i < stonesoupData->data_size; stonesoup_i++) if ( stonesoupData -> data [ stonesoup_i ] >= 'a' && stonesoupData -> data [ stonesoup_i ] <= 'z' )  stonesoupData -> data [ stonesoup_i ] -= 32; 