MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CloseLogFile

Function CloseLogFile

src/Chat.c:62–68  ·  view source on GitHub ↗

Closes handle to the chat log file */

Source from the content-addressed store, hash-verified

60
61/* Closes handle to the chat log file */
62static void CloseLogFile(void) {
63 cc_result res;
64 if (!logStream.meta.file) return;
65
66 res = logStream.Close(&logStream);
67 if (res) { Logger_SysWarn2(res, "closing", &logPath); }
68}
69
70/* Whether the given character is an allowed in a log filename */
71static cc_bool AllowedLogNameChar(char c) {

Callers 4

Chat_DisableLoggingFunction · 0.70
AppendChatLogFunction · 0.70
OnResetFunction · 0.70
OnFreeFunction · 0.70

Calls 1

Logger_SysWarn2Function · 0.85

Tested by

no test coverage detected