1#include "cache.h"
23
int cmd_main(int argc, const char **argv)
4{
5int result;
6size_t offset;
78
if (!argv[1] || !argv[2])
9die("usage: %s <string1> <string2>", argv[0]);
1011
result = strcmp_offset(argv[1], argv[2], &offset);
1213
/*
14* Because differnt CRTs behave differently, only rely on signs
15* of the result values.
16*/
17result = (result < 0 ? -1 :
18result > 0 ? 1 :
190);
20printf("%d %"PRIuMAX"\n", result, (uintmax_t)offset);
21return 0;
22}