| 1499 | |
| 1500 | #ifdef _DEBUG |
| 1501 | ResultType FileAppend(LPTSTR aFilespec, LPTSTR aLine, bool aAppendNewline) |
| 1502 | { |
| 1503 | if (!aFilespec || !aLine) return FAIL; |
| 1504 | if (!*aFilespec) return FAIL; |
| 1505 | FILE *fp = _tfopen(aFilespec, _T("a")); |
| 1506 | if (fp == NULL) |
| 1507 | return FAIL; |
| 1508 | _fputts(aLine, fp); |
| 1509 | if (aAppendNewline) |
| 1510 | _puttc('\n', fp); |
| 1511 | fclose(fp); |
| 1512 | return OK; |
| 1513 | } |
| 1514 | #endif |
| 1515 | |
| 1516 |
no outgoing calls
no test coverage detected