Lines Matching refs:buf_string
32 char buf_string[(buflen << 1) + 1]; in bmp_test() local
33 buf_string[0] = '\0'; in bmp_test()
35 snprintf(&buf_string[i << 1], 3, "%02X", buf[i]); in bmp_test()
37 if (strcmp(contents, buf_string) == 0) { in bmp_test()
41 printf("%s: FAIL: %s vs. %s\n", test_name, contents, buf_string); in bmp_test()
79 char buf_string[chdr->size + 1]; in cbuf_test() local
85 memcpy(&buf_string[0], &first.mData[0], first.mLength); in cbuf_test()
88 memcpy(&buf_string[first.mLength], &second.mData[0], second.mLength); in cbuf_test()
90 buf_string[first.mLength + second.mLength] = '\0'; in cbuf_test()
92 buf_string[first.mLength] = '\0'; in cbuf_test()
95 if (strcmp(contents, buf_string) == 0) { in cbuf_test()
99 …: %s (%zu) vs. %s (%zu)\n", test_name, contents, strlen(contents), buf_string, strlen(buf_string)); in cbuf_test()