quicksort

This commit is contained in:
bronku 2025-10-15 16:34:25 +02:00
parent 3b1db93d74
commit 45e804a350
7 changed files with 118 additions and 14 deletions

6
tape.h
View file

@ -14,11 +14,11 @@ typedef struct {
} buffer;
// sorts the entire buffer
void quicksort(buffer* buff);
void sort_buffer(buffer* buff);
// reads [capacity] records
void read_buffer(buffer* buff, tape* tape);
int read_buffer(buffer* buff, tape* tape);
// writes everything
void write_buffer(buffer* buff, tape* tape);
int write_buffer(buffer* buff, tape* tape);
void clear_tape(tape* tape);