MCPcopy Create free account
hub / github.com/antirez/smallchat / inputBufferAppend

Function inputBufferAppend

smallchat-client.c:130–136  ·  view source on GitHub ↗

Append the specified character to the buffer. */

Source from the content-addressed store, hash-verified

128
129/* Append the specified character to the buffer. */
130int 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
138void inputBufferHide(struct InputBuffer *ib);
139void inputBufferShow(struct InputBuffer *ib);

Callers 2

inputBufferFeedCharFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected