Lines Matching refs:buf
527 char buf[4096]; in test_strlen() local
532 p = (char *) ((unsigned long int)(buf + 0xff) & ~0xff) + i; in test_strlen()
554 char buf[4096]; in test_strnlen() local
557 char *p = (char *) ((unsigned long int)(buf + 0xff) & ~0xff) + i; in test_strnlen()
580 char buf[4096]; in test_strchr() local
585 p = (char *) ((unsigned long int) (buf + 0xff) & ~0xff) + i; in test_strchr()
612 char buf[4096]; in test_strchrnul() local
617 p = (char *) ((unsigned long int) (buf + 0xff) & ~0xff) + i; in test_strchrnul()
641 char buf[4096]; in test_rawmemchr() local
646 p = (char *) ((unsigned long int) (buf + 0xff) & ~0xff) + i; in test_rawmemchr()
687 char buf[4096]; in test_strrchr() local
692 p = (char *) ((unsigned long int) (buf + 0xff) & ~0xff) + i; in test_strrchr()
724 char buf[128 + sizeof (long)]; in test_memrchr() local
728 for (len = 0; len < (long) (sizeof (buf) - align); ++len) { in test_memrchr()
730 buf[align + i] = 'x'; /* don't depend on memset... */ in test_memrchr()
736 check(memrchr(buf + align, 'x', len) == buf + align + pos, n++); in test_memrchr()
737 check(memrchr(buf + align + pos + 1, 'x', len - (pos + 1)) == NULL, in test_memrchr()
739 buf[align + pos] = '-'; in test_memrchr()
1143 char buf[128 + sizeof (long)]; in test_memchr() local
1147 for (len = 0; len < (long) (sizeof (buf) - align); ++len) { in test_memchr()
1149 buf[align + i] = 'x'; /* don't depend on memset... */ in test_memchr()
1155 check(memchr(buf + align, 'x', len) == buf + align + pos, 10); in test_memchr()
1156 check(memchr(buf + align, 'x', pos) == NULL, 11); in test_memchr()
1157 buf[align + pos] = '-'; in test_memchr()