Read the entire contents of the given file descriptor.
| 187 | |
| 188 | // Read the entire contents of the given file descriptor. |
| 189 | void |
| 190 | TextBuffer::slurp(int fd) |
| 191 | { |
| 192 | int nbytes; |
| 193 | |
| 194 | do { |
| 195 | nbytes = readFromFD(fd); |
| 196 | } while (nbytes > 0); |
| 197 | } |
| 198 | |
| 199 | // int TextBuffer::readFromFD(int fd) |
| 200 | // |
no outgoing calls
no test coverage detected