From 5b134edac6bd652ceaacc97f7699a566fb096ef6 Mon Sep 17 00:00:00 2001 From: lisk77 Date: Wed, 27 Aug 2025 01:21:29 +0200 Subject: [PATCH] feat(file): added the FileInfo struct --- include/file.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/file.h b/include/file.h index 79fcb10..4936137 100644 --- a/include/file.h +++ b/include/file.h @@ -11,6 +11,11 @@ typedef struct { uint64_t lines; } File; +typedef struct { + uint32_t mode; + char* name; +} FileInfo; + File* new_empty_file(); File* new_file(const char*); File* slice_file(File*, uint64_t, uint64_t);