diff --git a/log.c b/log.c index e5b3885..9efa131 100644 --- a/log.c +++ b/log.c @@ -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; diff --git a/log.h b/log.h index 1ad1339..e6e9d64 100644 --- a/log.h +++ b/log.h @@ -3,6 +3,8 @@ void startLog(char* filename); +void logString(char* string); + void logLine(char* string); void endLog();