diff options
author | Oskar <[email protected]> | 2024-04-19 23:18:03 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-04-19 23:18:03 +0200 |
commit | 73b0414254e6b888656b4e5346292f27b67ac9d9 (patch) | |
tree | 1427052e0515364278638d270755d213768d45c4 /7ed.h | |
parent | 645a02d84b174376beed51de9e8820fe4d217ede (diff) |
Added a way for the program to check if file exists or not. If not then
it creates it. If changes are made to the file like writing newlines
or edits from editmode is written then it will create the file.
Diffstat (limited to '7ed.h')
-rw-r--r-- | 7ed.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,9 @@ #define TRUE_7ED 0 #define FALSE_7ED 1 +#define FILE_EXISTS 0 +#define FILE_NOT_FOUND 1 + int count_lines_in_file(char filename[], uint64_t *lines); int count_lines_in_file_posix(char filename[], size_t *lines); |