| 107 | } |
| 108 | |
| 109 | void execLogfile(const char *fn, bool append) |
| 110 | { |
| 111 | if ((Logfile = fopen(fn, append? "a" : "w"))) |
| 112 | { |
| 113 | const char *timestr = myasctime(); |
| 114 | Printf("Log started: %s\n", timestr); |
| 115 | } |
| 116 | else |
| 117 | { |
| 118 | Printf("Could not start log\n"); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | UNSAFE_CCMD (logfile) |
| 123 | { |
no test coverage detected