Lines Matching refs:s

56 	char *s, *c;  in test_strtol()  local
67 TEST(l, strtol(s="2147483648", &c, 0), 2147483647L, "uncaught overflow %ld != %ld"); in test_strtol()
68 TEST2(i, c-s, 10, "wrong final position %d != %d"); in test_strtol()
71 TEST(l, strtol(s="-2147483649", &c, 0), -2147483647L-1, "uncaught overflow %ld != %ld"); in test_strtol()
72 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
75 TEST(ul, strtoul(s="4294967296", &c, 0), 4294967295UL, "uncaught overflow %lu != %lu"); in test_strtol()
76 TEST2(i, c-s, 10, "wrong final position %d != %d"); in test_strtol()
79 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
80 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
83 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
84 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
87 TEST(ul, strtoul(s="-2147483648", &c, 0), -2147483648UL, "rejected negative %lu != %lu"); in test_strtol()
88 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
91 TEST(ul, strtoul(s="-2147483649", &c, 0), -2147483649UL, "rejected negative %lu != %lu"); in test_strtol()
92 TEST2(i, c-s, 11, "wrong final position %d != %d"); in test_strtol()
96 …TEST(l, strtol(s="9223372036854775808", &c, 0), 9223372036854775807L, "uncaught overflow %ld != %l… in test_strtol()
97 TEST2(i, c-s, 19, "wrong final position %d != %d"); in test_strtol()
100 …TEST(l, strtol(s="-9223372036854775809", &c, 0), -9223372036854775807L-1, "uncaught overflow %ld !… in test_strtol()
101 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
104 …TEST(ul, strtoul(s="18446744073709551616", &c, 0), 18446744073709551615UL, "uncaught overflow %lu … in test_strtol()
105 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
108 TEST(ul, strtoul(s="-1", &c, 0), -1UL, "rejected negative %lu != %lu"); in test_strtol()
109 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
112 TEST(ul, strtoul(s="-2", &c, 0), -2UL, "rejected negative %lu != %lu"); in test_strtol()
113 TEST2(i, c-s, 2, "wrong final position %d != %d"); in test_strtol()
116 …TEST(ul, strtoul(s="-9223372036854775808", &c, 0), -9223372036854775808UL, "rejected negative %lu … in test_strtol()
117 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
120 …TEST(ul, strtoul(s="-9223372036854775809", &c, 0), -9223372036854775809UL, "rejected negative %lu … in test_strtol()
121 TEST2(i, c-s, 20, "wrong final position %d != %d"); in test_strtol()
127 TEST(l, strtol(s="0F5F", &c, 16), 0x0f5f, "%ld != %ld"); in test_strtol()
129 TEST(l, strtol(s="0xz", &c, 16), 0, "%ld != %ld"); in test_strtol()
130 TEST2(i, c-s, 1, "wrong final position %ld != %ld"); in test_strtol()
132 TEST(l, strtol(s="0x1234", &c, 16), 0x1234, "%ld != %ld"); in test_strtol()
133 TEST2(i, c-s, 6, "wrong final position %ld != %ld"); in test_strtol()
152 TEST(l, strtol(s=delim_buf, &c, 16), 0x09af0 | k, "%ld != %ld"); in test_strtol()
153 TEST2(i, c-s, 5, "wrong final position %ld != %ld"); in test_strtol()
155 TEST(l, strtol(s=delim_buf, &c, 16), 0x09af, "%ld != %ld"); in test_strtol()
156 TEST2(i, c-s, 4, "wrong final position %ld != %ld"); in test_strtol()
162 TEST(l, strtol(s="123", &c, 37), 0, "%ld != %ld"); in test_strtol()
171 TEST(l, strtol(s=" 15437", &c, 8), 015437, "%ld != %ld"); in test_strtol()
172 TEST2(i, c-s, 7, "wrong final position %d != %d"); in test_strtol()
174 TEST(l, strtol(s=" 1", &c, 0), 1, "%ld != %ld"); in test_strtol()
175 TEST2(i, c-s, 3, "wrong final position %d != %d"); in test_strtol()