MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_char

Function get_char

cdb2api/cdb2api.c:1236–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1234}
1235
1236static inline int get_char(SBUF2 *s, const char *buf, int *chrno)
1237{
1238 int ch;
1239 if (s) {
1240 ch = sbuf2getc(s);
1241 } else {
1242 ch = buf[*chrno];
1243 *chrno += 1;
1244 }
1245 return ch;
1246}
1247
1248static int read_line(char *line, int maxlen, SBUF2 *s, const char *buf,
1249 int *chrno)

Callers 1

read_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected