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

Function handle_field_1

src/cut.c:719–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719static inline bool
720handle_field_1 (uintmax_t field_idx, bool buffer_first_field,
721 idx_t *field_1_n_bytes)
722{
723 bool field_1_selected = false;
724
725 if (field_idx == 1 && buffer_first_field)
726 {
727 if ((field_1_selected = print_kth (1)))
728 write_bytes (field_1_buffer, *field_1_n_bytes);
729 *field_1_n_bytes = 0;
730 }
731
732 return field_1_selected;
733}
734
735static inline void
736handle_field_delimiter (uintmax_t *field_idx, bool buffer_first_field,

Callers 2

handle_field_delimiterFunction · 0.85
cut_fields_bytesearchFunction · 0.85

Calls 2

print_kthFunction · 0.85
write_bytesFunction · 0.85

Tested by

no test coverage detected