Append the specified character to the buffer. */
| 128 | |
| 129 | /* Append the specified character to the buffer. */ |
| 130 | int inputBufferAppend(struct InputBuffer *ib, int c) { |
| 131 | if (ib->len >= IB_MAX) return IB_ERR; // No room. |
| 132 | |
| 133 | ib->buf[ib->len] = c; |
| 134 | ib->len++; |
| 135 | return IB_OK; |
| 136 | } |
| 137 | |
| 138 | void inputBufferHide(struct InputBuffer *ib); |
| 139 | void inputBufferShow(struct InputBuffer *ib); |
no outgoing calls
no test coverage detected