| 95 | //------------------------------------------------------------------------- |
| 96 | |
| 97 | int |
| 98 | RecFileRead(RecHandle h_file, char *buf, int size, int *bytes_read) |
| 99 | { |
| 100 | if ((*bytes_read = ::read(h_file, buf, size)) <= 0) { |
| 101 | *bytes_read = 0; |
| 102 | return REC_ERR_FAIL; |
| 103 | } |
| 104 | return REC_ERR_OKAY; |
| 105 | } |
| 106 | |
| 107 | //------------------------------------------------------------------------- |
| 108 | // RecSnapFileWrite |
no test coverage detected