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

Function begin_field_output

src/cut.c:703–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701 and write the output delimiter if appropriate. */
702
703static inline bool
704begin_field_output (uintmax_t field_idx, bool buffer_first_field,
705 bool *found_any_selected_field)
706{
707 bool write_field = print_kth (field_idx);
708
709 if (write_field && ! (field_idx == 1 && buffer_first_field))
710 {
711 if (*found_any_selected_field)
712 write_bytes (output_delimiter_string, output_delimiter_length);
713 *found_any_selected_field = true;
714 }
715
716 return write_field;
717}
718
719static inline bool
720handle_field_1 (uintmax_t field_idx, bool buffer_first_field,

Callers 3

handle_field_delimiterFunction · 0.85
cut_fields_mb_anyFunction · 0.85
cut_fields_bytesearchFunction · 0.85

Calls 2

print_kthFunction · 0.85
write_bytesFunction · 0.85

Tested by

no test coverage detected