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

Function append_field_1_chunk

src/cut.c:480–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480static inline void
481append_field_1_chunk (char const *buf, idx_t len, idx_t *n_bytes)
482{
483 if (field_1_bufsize - *n_bytes < len)
484 {
485 field_1_buffer = xpalloc (field_1_buffer, &field_1_bufsize,
486 len, -1, sizeof *field_1_buffer);
487 }
488
489 copy_bytes (field_1_buffer + *n_bytes, buf, len);
490 *n_bytes += len;
491}
492
493static inline void
494append_field_1_bytes (mbbuf_t *mbbuf, mcel_t g, idx_t *n_bytes)

Callers 2

append_field_1_bytesFunction · 0.85
cut_fields_bytesearchFunction · 0.85

Calls 1

copy_bytesFunction · 0.85

Tested by

no test coverage detected