Can now log without new line.

This commit is contained in:
Sheldon Lee 2020-07-06 00:56:29 +01:00
parent ede81f734d
commit 6a23dd6667
2 changed files with 8 additions and 0 deletions

6
log.c
View File

@ -9,6 +9,12 @@ void startLog(char* filename)
file = fopen(filename, "w");
}
void logString(char* string)
{
if (!file) return;
fputs(string, file);
}
void logLine(char* string)
{
if (!file) return;

2
log.h
View File

@ -3,6 +3,8 @@
void startLog(char* filename);
void logString(char* string);
void logLine(char* string);
void endLog();