| 534 | #endif |
| 535 | |
| 536 | long stream::size() |
| 537 | { |
| 538 | long pos = tell(), endpos; |
| 539 | if(pos < 0 || !seek(0, SEEK_END)) return -1; |
| 540 | endpos = tell(); |
| 541 | return pos == endpos || seek(pos, SEEK_SET) ? endpos : -1; |
| 542 | } |
| 543 | |
| 544 | bool stream::getline(char *str, int len) |
| 545 | { |
no outgoing calls
no test coverage detected