4 setvbuf(stdout, NULL, _IONBF, 0);
5 unsigned char all_0[] = { 0, 0, 0, 0 };
6 unsigned char all_255[] = { 255, 255, 255, 255 };
7 unsigned char half[] = { 0, 0, 255, 255 };
10 cmp_mem(all_0, all_0, 4, "Array must be equal to itself");
11 cmp_mem(all_0, all_255, 4, "Arrays with different contents");
12 cmp_mem(all_0, half, 4, "Arrays differ, but start the same");
13 cmp_mem(all_0, all_255, 0, "Comparing 0 bytes of different arrays");
14 cmp_mem(NULL, all_0, 4, "got == NULL");
15 cmp_mem(all_0, NULL, 4, "expected == NULL");
16 cmp_mem(NULL, NULL, 4, "got == expected == NULL");