Lines Matching refs:buf
219 char buf[PLAIN_BUF_SIZE]; in plain_format() local
222 nchars = snprintf(buf, PLAIN_BUF_SIZE, "%p", PTR); in plain_format()
227 if (strncmp(buf, PTR_VAL_NO_CRNG, PTR_WIDTH) == 0) { in plain_format()
233 if (strncmp(buf, ZEROS, strlen(ZEROS)) != 0) in plain_format()
257 plain_hash_to_buffer(const void *p, char *buf, size_t len) in plain_hash_to_buffer() argument
261 nchars = snprintf(buf, len, "%p", p); in plain_hash_to_buffer()
266 if (strncmp(buf, PTR_VAL_NO_CRNG, PTR_WIDTH) == 0) { in plain_hash_to_buffer()
278 char buf[PLAIN_BUF_SIZE]; in plain_hash() local
281 ret = plain_hash_to_buffer(PTR, buf, PLAIN_BUF_SIZE); in plain_hash()
285 if (strncmp(buf, PTR_STR, PTR_WIDTH) == 0) in plain_hash()
317 char buf[PLAIN_BUF_SIZE]; in test_hashed() local
324 ret = plain_hash_to_buffer(p, buf, PLAIN_BUF_SIZE); in test_hashed()
328 test(buf, fmt, p); in test_hashed()
378 const char buf[3] = {0xc0, 0xff, 0xee}; in hex_string() local
381 "%3ph|%3phC|%3phD|%3phN", buf, buf, buf, buf); in hex_string()
383 "%*ph|%*phC|%*phD|%*phN", 3, buf, 3, buf, 3, buf, 3, buf); in hex_string()