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

Function include_field

src/numfmt.c:1430–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428}
1429
1430ATTRIBUTE_PURE
1431static bool
1432include_field (uintmax_t field)
1433{
1434 struct field_range_pair *p = frp;
1435 if (!p)
1436 return field == 1;
1437
1438 while (p->lo != UINTMAX_MAX)
1439 {
1440 if (p->lo <= field && p->hi >= field)
1441 return true;
1442 ++p;
1443 }
1444 return false;
1445}
1446
1447/* Convert and output the given field. If it is not included in the set
1448 of fields to process just output the original */

Callers 1

process_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected