started working on logging
This commit is contained in:
+14
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user