started working on logging

This commit is contained in:
FantasyPvP
2024-12-04 18:59:02 +00:00
parent ad96bcc0c8
commit ad8496ca68
7 changed files with 49 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "dynstr.h"
int write_log(String_t* string, int lines) {
FILE* file = fopen("log.txt", "a");
for (int i = 0; i < lines; i++) {
str_to_file(&string[i], file);
}
return 0;
}