#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; }