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

Function mbbuf_char_offset

gl/lib/mbbuf.h:170–176  ·  view source on GitHub ↗

Returns a pointer to the first byte in the previously read character from mbbuf_get_char. */

Source from the content-addressed store, hash-verified

168/* Returns a pointer to the first byte in the previously read character from
169 mbbuf_get_char. */
170MBBUF_INLINE char *
171mbbuf_char_offset (mbbuf_t *mbbuf, mcel_t g)
172{
173 if (mbbuf->offset < g.len)
174 unreachable ();
175 return mbbuf->buffer + (mbbuf->offset - g.len);
176}
177
178_GL_INLINE_HEADER_END
179

Callers 7

expandFunction · 0.85
unexpandFunction · 0.85
fold_fileFunction · 0.85
append_field_1_bytesFunction · 0.85
scan_mb_blank_fieldFunction · 0.85
scan_mb_delim_fieldFunction · 0.85
cut_characters_modeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected