Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int fusionner (file* tab, int nfe, file* fs)
- {
- int tmp,cpt,i=-1
- if (tab)
- while (tab)
- {
- cpt=0;
- if (tab[cpt] && tab[cpt+1])
- {
- if (tab[cpt]->content > tab[cpt+1]->content)
- cpt=cpt+1;
- }
- else
- {
- defiler( &tab[cpt], &tmp );
- enfiler( *fs, tmp);
- i++;
- }
- }
- return i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement