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

Function diff_reversed

src/sort.c:2779–2783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2777 If REVERSED, do not simply negate DIFF as that can mishandle INT_MIN. */
2778
2779static int
2780diff_reversed (int diff, bool reversed)
2781{
2782 return reversed ? _GL_CMP (0, diff) : diff;
2783}
2784
2785/* Compare two lines A and B trying every key in sequence until there
2786 are no more keys or a difference is found. */

Callers 2

keycompareFunction · 0.85
compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected