commit | 3ff476e9efd44fac747cc1049ecef486519a1554 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Mar 30 10:02:56 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Mar 30 10:02:56 2022 +0200 |
tree | 732e714b8f201dbcea916225e4bde13e3e692ae8 | |
parent | 29d799d591d28cbbda3a8a6f3335ab5b0c19a76e [diff] |
MINOR: tools: add strordered() to check whether strings are ordered When trying to sort sets of strings, it's often needed to required to compare 3 strings to see if the chosen one fits well between the two others. That's what this function does, in addition to being able to ignore extremities when they're NULL (typically for the first iteration for example).