+/Femto

toy text editor

git clone https://git.julia.blue/+/Femto

Joseph RyanFixup973c5b9

master
240 B18 linesraw
1#ifndef ABUF_H
2#define ABUF_H
3
4#include <stdlib.h>
5#include <string.h>
6
7typedef struct abuf {
8    char* b;
9    int len;
10} abuf;
11
12#define ABUF_INIT {NULL, 0};
13
14void abappend(abuf* ab, const char* s, int len);
15
16void abfree(abuf* ab);
17
18#endif