----------------------------------------- acquireOutputStream -----------------------------------------
| 136 | // acquireOutputStream |
| 137 | //----------------------------------------- |
| 138 | int acquireOutputStream(int* error) |
| 139 | { |
| 140 | int fd = streamDup(fileno(stdout)); |
| 141 | *error = 0; |
| 142 | if (!freopen(gFileName, "w", stdout)) |
| 143 | { |
| 144 | releaseOutputStream(fd); |
| 145 | *error = -1; |
| 146 | } |
| 147 | return fd; |
| 148 | } |
| 149 | |
| 150 | //----------------------------------------- |
| 151 | // releaseOutputStream |
no test coverage detected