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
+12
View File
@@ -0,0 +1,12 @@
#include "dynstr.h"
/**
* Writes the string to a file, appending a newline character
* This function automatically appends a newline character to the end of the string
*
* @param string the string to write
* @return 0 on success, -1 on error
* @note This function frees the string passed to it!
*/
int write_log(String_t* string, int lines);