MCPcopy Create free account
hub / github.com/coreutils/coreutils / mbbuf_advance

Function mbbuf_advance

gl/lib/mbbuf.h:139–145  ·  view source on GitHub ↗

Consume N bytes from the current buffer. */

Source from the content-addressed store, hash-verified

137
138/* Consume N bytes from the current buffer. */
139MBBUF_INLINE void
140mbbuf_advance (mbbuf_t *mbbuf, idx_t n)
141{
142 if (mbbuf_avail (mbbuf) < n)
143 unreachable ();
144 mbbuf->offset += n;
145}
146
147/* Get the next character in the buffer, filling it from FP if necessary.
148 If an invalid multi-byte character is seen, we assume the program wants to

Callers 1

cut_fields_bytesearchFunction · 0.85

Calls 1

mbbuf_availFunction · 0.85

Tested by

no test coverage detected