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

Function maybe_write_line_delim

src/cut.c:692–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690/* Write the end-of-line delimiter if appropriate for the current line. */
691
692static inline void
693maybe_write_line_delim (bool found_any_selected_field, uintmax_t field_idx)
694{
695 if (found_any_selected_field
696 || !(suppress_non_delimited && field_idx == 1))
697 write_line_delim ();
698}
699
700/* Return TRUE if FIELD_IDX is selected,
701 and write the output delimiter if appropriate. */

Callers 2

finish_current_lineFunction · 0.85
cut_fields_bytesearchFunction · 0.85

Calls 1

write_line_delimFunction · 0.85

Tested by

no test coverage detected