* pqGetc: get 1 character from the connection * * All these routines return 0 on success, EOF on error. * Note that for the Get routines, EOF only means there is not enough * data in the buffer, not that there is necessarily a hard error. */
| 82 | * data in the buffer, not that there is necessarily a hard error. |
| 83 | */ |
| 84 | int |
| 85 | pqGetc(char *result, PGconn *conn) |
| 86 | { |
| 87 | if (conn->inCursor >= conn->inEnd) |
| 88 | return EOF; |
| 89 | |
| 90 | *result = conn->inBuffer[conn->inCursor++]; |
| 91 | |
| 92 | return 0; |
| 93 | } |
| 94 | |
| 95 | |
| 96 | /* |
no outgoing calls
no test coverage detected