This function allows to know if there was a read error in any past * operation, since the rio stream was created or since the last call * to rioClearError(). */
| 144 | * operation, since the rio stream was created or since the last call |
| 145 | * to rioClearError(). */ |
| 146 | static inline int rioGetReadError(rio *r) { |
| 147 | return (r->flags & RIO_FLAG_READ_ERROR) != 0; |
| 148 | } |
| 149 | |
| 150 | /* Like rioGetReadError() but for write errors. */ |
| 151 | static inline int rioGetWriteError(rio *r) { |
no outgoing calls
no test coverage detected