Lines Matching refs:buf1

97     char buf1[0x40], buf2[0x40];  in test_strcmp()  local
105 buf1[k] = '0' ^ (k & 4); in test_strcmp()
108 buf1[i] = buf1[0x3f] = 0; in test_strcmp()
113 check (strcmp (buf1+i,buf2+j) == 0, cnum); in test_strcmp()
114 buf1[i+k] = 'A' + i + k; in test_strcmp()
115 buf1[i+k+1] = 0; in test_strcmp()
116 check (strcmp (buf1+i,buf2+j) > 0, cnum+1); in test_strcmp()
117 check (strcmp (buf2+j,buf1+i) < 0, cnum+2); in test_strcmp()
120 check (strcmp (buf1+i,buf2+j) < 0, cnum+3); in test_strcmp()
121 check (strcmp (buf2+j,buf1+i) > 0, cnum+4); in test_strcmp()
123 buf1[i] = 'A' + i + 0x80; in test_strcmp()
124 check (strcmp (buf1+i,buf2+j) > 0, cnum+5); in test_strcmp()
125 check (strcmp (buf2+j,buf1+i) < 0, cnum+6); in test_strcmp()
126 buf1[i] = 'A' + i; in test_strcmp()
324 char buf1[80] __attribute__ ((aligned (16))); in test_strcat() local
332 memset (buf1, 'b', sizeof (buf1)); in test_strcat()
334 memset (buf1 + n2, 'a', n3); in test_strcat()
335 buf1[n2 + n3] = '\0'; in test_strcat()
338 check (strcat (buf1 + n2, buf2 + n1) == buf1 + n2, ntest); in test_strcat()
340 for (size_t i = 0; i < sizeof (buf1); ++i) in test_strcat()
343 check (buf1[i] == 'b', ntest); in test_strcat()
345 check (buf1[i] == 'a', ntest); in test_strcat()
347 check (buf1[i] == "123"[i - (n2 + n3)], ntest); in test_strcat()
349 check (buf1[i] == '\0', ntest); in test_strcat()
351 check (buf1[i] == 'b', ntest); in test_strcat()
356 n1, n2, n3, buf1[0]); in test_strcat()
357 for (size_t j = 1; j < sizeof (buf1); ++j) in test_strcat()
358 printf (",%02hhx", buf1[j]); in test_strcat()
411 char buf1[80] __attribute__ ((aligned (16))); in test_strncat() local
420 memset (buf1, 'b', sizeof (buf1)); in test_strncat()
422 memset (buf1 + n2, 'a', n3); in test_strncat()
423 buf1[n2 + n3] = '\0'; in test_strncat()
426 check (strncat (buf1 + n2, buf2 + n1, ~((size_t) 0) - n4) in test_strncat()
427 == buf1 + n2, ntest); in test_strncat()
429 for (size_t i = 0; i < sizeof (buf1); ++i) in test_strncat()
432 check (buf1[i] == 'b', ntest); in test_strncat()
434 check (buf1[i] == 'a', ntest); in test_strncat()
436 check (buf1[i] == "123"[i - (n2 + n3)], ntest); in test_strncat()
438 check (buf1[i] == '\0', ntest); in test_strncat()
440 check (buf1[i] == 'b', ntest); in test_strncat()
445 n1, n2, n3, n4, buf1[0]); in test_strncat()
446 for (size_t j = 1; j < sizeof (buf1); ++j) in test_strncat()
447 printf (",%02hhx", buf1[j]); in test_strncat()