This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/3993 comment: describe indent_cmp() Change-Id: Ia58c16d995f6751bdd69defe8a46665aee163f3d --- M src/vty/command.c 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/93/3993/1 diff --git a/src/vty/command.c b/src/vty/command.c index e804959..8f11a2c 100644 --- a/src/vty/command.c +++ b/src/vty/command.c @@ -2331,6 +2331,10 @@ return str? strlen(str) : 0; } +/*! Make sure the common length of strings a and b is identical, then compare their lengths. I.e., if a + * is longer than b, a must start with exactly b, and vice versa. + * \returns EINVAL on mismatch, -1 for a < b, 0 for a == b, 1 for a > b. + */ static int indent_cmp(const char *a, const char *b) { size_t al, bl; -- To view, visit https://gerrit.osmocom.org/3993 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia58c16d995f6751bdd69defe8a46665aee163f3d Gerrit-PatchSet: 1 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>