functional lisp config files
Build and Deploy Docs / build (push) Successful in 47s

This commit is contained in:
Arthur Barraux
2025-10-02 11:26:18 +02:00
parent 53d6572c8c
commit 3b6c60a49e
16 changed files with 482 additions and 209 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ char *editorRowsToString(int *buffer_len) {
for (j = 0; j < E.numrows; ++j) {
tot_len += E.row[j].size + 1;
}
}
*buffer_len = tot_len;
buf = malloc(tot_len);
p = buf;
@@ -42,7 +42,7 @@ void editorOpen(char *filename) {
free(E.filename);
E.filename = strdup(filename);
fp = fopen(filename, "r");
fp = fopen(filename, "a+");
if (!fp)
die("fopen");