19 lines
318 B
C
19 lines
318 B
C
#ifndef BUFFER_H
|
|
#define BUFFER_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct {
|
|
char* path;
|
|
char* text;
|
|
size_t text_capacity;
|
|
size_t text_length;
|
|
bool changed;
|
|
} Buffer;
|
|
|
|
void buffer_init(Buffer* buffer);
|
|
int buffer_from_file(Buffer* buffer, const char* path);
|
|
void buffer_deinit(Buffer* buffer);
|
|
|
|
#endif
|