| 597 | /* Output all the fields in line, other than the join field. */ |
| 598 | |
| 599 | static void |
| 600 | prfields (struct line const *line, idx_t join_field, idx_t autocount) |
| 601 | { |
| 602 | idx_t nfields = autoformat ? autocount : line->nfields; |
| 603 | |
| 604 | for (idx_t i = 0; i < join_field && i < nfields; ++i) |
| 605 | { |
| 606 | fwrite (output_separator, 1, output_seplen, stdout); |
| 607 | prfield (i, line); |
| 608 | } |
| 609 | for (idx_t i = join_field + 1; i < nfields; ++i) |
| 610 | { |
| 611 | fwrite (output_separator, 1, output_seplen, stdout); |
| 612 | prfield (i, line); |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | /* Print the join of LINE1 and LINE2. */ |
| 617 | |