MCPcopy Index your code
hub / github.com/coreutils/coreutils / prfield

Function prfield

src/join.c:582–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580 'empty_filler' if it is nonempty. */
581
582static void
583prfield (idx_t n, struct line const *line)
584{
585 if (n < line->nfields)
586 {
587 idx_t len = line->fields[n].len;
588 if (len)
589 fwrite (line->fields[n].beg, 1, len, stdout);
590 else if (empty_filler)
591 fputs (empty_filler, stdout);
592 }
593 else if (empty_filler)
594 fputs (empty_filler, stdout);
595}
596
597/* Output all the fields in line, other than the join field. */
598

Callers 2

prfieldsFunction · 0.85
prjoinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected