quicksort
This commit is contained in:
parent
3b1db93d74
commit
45e804a350
7 changed files with 118 additions and 14 deletions
6
tape.h
6
tape.h
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue