Escape path in the log file

This commit is contained in:
Andrea Mazzoleni 2015-02-12 22:55:05 +01:00
parent 8f2b148ff1
commit ea07a7025e
13 changed files with 165 additions and 92 deletions

View file

@ -70,6 +70,13 @@ void ftag(const char* format, ...) __attribute__((format(printf, 1, 2)));
*/
typedef void fptr(const char* format, ...);
/**
* Escape a string.
*
* Chars ':', '\n', '\r' and '\' are escaped to '\d', '\\n', '\\r' and '\\'.
*/
const char* esc(const char* str);
/****************************************************************************/
/* path */