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