From e2965f7ea63a5426e018c4e8c7f557fcce4c69c0 Mon Sep 17 00:00:00 2001 From: Oskar Date: Tue, 7 Nov 2023 23:12:31 +0100 Subject: Added edit mode and function to write the changes to file. Write function is not completely done yet because the temp file created by it is not removed when it is done. But other than that the editor actually works now. There are still some quirks that i need to sort out, especially the fact that you cant actually create a new line beyond the amount in the file you are editing --- 7ed.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '7ed.h') diff --git a/7ed.h b/7ed.h index c7236f0..733be83 100644 --- a/7ed.h +++ b/7ed.h @@ -55,3 +55,10 @@ int startmode(char filename[]); int GET_LINE(char filename[], long focus, char **line, size_t *start); #endif /* GET_LINE_H */ + +#ifndef EDITMODE_H +#define EDITMODE_H + +int editmode(char filename[], long focus); + +#endif /* EDITMODE_H */ \ No newline at end of file -- cgit v1.2.3