File opperations to convert text into OBJECTS

This commit is contained in:
2025-06-13 16:35:10 +01:00
parent c59c838696
commit f84e739a7f
6 changed files with 173 additions and 10 deletions
+9
View File
@@ -83,9 +83,18 @@ file_content w_read_file(FILE *file)
line_start = i + 1;
}
}
__result.lines = lines;
return __result;
}
void w_close_file(FILE *file)
{
if (file != NULL)
{
fclose(file);
}
}
file_content init_file_content()
{
file_content r;
+1
View File
@@ -13,6 +13,7 @@ typedef struct
FILE *w_open_file(const char *filepath);
file_content w_read_file(FILE *file);
void w_close_file(FILE *file);
file_content init_file_content();