]>
git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-strcmp-offset.c
3 #include "read-cache-ll.h"
5 int cmd__strcmp_offset(int argc UNUSED
, const char **argv
)
10 if (!argv
[1] || !argv
[2])
11 die("usage: %s <string1> <string2>", argv
[0]);
13 result
= strcmp_offset(argv
[1], argv
[2], &offset
);
16 * Because different CRTs behave differently, only rely on signs
17 * of the result values.
19 result
= (result
< 0 ? -1 :
22 printf("%d %"PRIuMAX
"\n", result
, (uintmax_t)offset
);