started C implementation, created custom library for handling strings

This commit is contained in:
FantasyPvP
2024-11-02 22:39:16 +00:00
parent 3d3eeb142f
commit 83a71ae0a1
10 changed files with 488 additions and 30 deletions
+18
View File
@@ -0,0 +1,18 @@
#include "dynstr.h"
typedef struct {
int screen_line;
int screen_col;
bool editmode;
String* buffer;
} Editor;
Editor new_editor();
Editor editor_from(char* input_string);
void move_cursor(Editor* self, int x, int y);
void delchar(Editor* self);
void addchar(Editor* self, char c);
String* to_string(Editor* self);