The memcmp function returns an integer greater than, equal to, or less than zero, accordingly as the object pointed to by s1 is greater than, equal to, or less than the object pointed to by s2.
これはつまり、a > b > c だとしても、 memcmp(a, b, n)で100を返し、memcmp(a, c, n) で1を返してもいいんですよね? 0より大きいか小さいかだけが問題で。 accordinglyってのは、「大きい小さい等しい」に従うだけで 数値に従う必要はないですよね?