Lines Matching refs:s
11 char *s; in test_zero() local
15 s = (char *)mallocx(sz_min, 0); in test_zero()
16 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure"); in test_zero()
18 for (sz = sallocx(s, 0); sz <= sz_max; in test_zero()
19 sz_prev = sz, sz = sallocx(s, 0)) { in test_zero()
21 assert_c_eq(s[0], 'a', in test_zero()
24 assert_c_eq(s[sz_prev-1], 'a', in test_zero()
30 assert_c_eq(s[i], 0x0, in test_zero()
33 s[i] = 'a'; in test_zero()
36 if (xallocx(s, sz+1, 0, 0) == sz) { in test_zero()
37 s = (char *)rallocx(s, sz+1, 0); in test_zero()
38 assert_ptr_not_null((void *)s, in test_zero()
43 dallocx(s, 0); in test_zero()