refactor
This commit is contained in:
parent
7c888a3dd0
commit
5d9fc7d18d
11 changed files with 247 additions and 297 deletions
12
buffer.h
Normal file
12
buffer.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
#include "record.h"
|
||||
|
||||
typedef struct {
|
||||
record* location;
|
||||
int length;
|
||||
int capacity;
|
||||
} buffer;
|
||||
|
||||
buffer create_buffer(int capacity);
|
||||
int read_buffer(buffer* buff, FILE* in);
|
||||
int write_buffer(buffer* buff, FILE* in);
|
||||
Loading…
Add table
Add a link
Reference in a new issue