Lines Matching refs:str
35 const char str[] = "123"; in main() local
36 const char *pp = str; in main()
37 const char *end = str + 3; in main()
42 assert (pp - str == 3); in main()
48 const char str[] = "123"; in main() local
49 const char *pp = str; in main()
50 const char *end = str + strlen (str); in main()
55 assert (pp - str == 3); in main()
61 const char str[] = "12F"; in main() local
62 const char *pp = str; in main()
63 const char *end = str + 3; in main()
68 assert (pp - str == 3); in main()
74 const char str[] = "12Fq"; in main() local
75 const char *pp = str; in main()
76 const char *end = str + 4; in main()
82 assert (pp - str == 3); in main()
88 const char str[] = "-123"; in main() local
89 const char *pp = str; in main()
90 const char *end = str + 4; in main()
95 assert (pp - str == 4); in main()
101 const char str[] = "123"; in main() local
102 const char *pp = str; in main()
103 assert (ARRAY_LENGTH (str) == 4); in main()
104 const char *end = str + ARRAY_LENGTH (str); in main()
109 assert (pp - str == 3); in main()
114 const char str[] = "123\0"; in main() local
115 const char *pp = str; in main()
116 assert (ARRAY_LENGTH (str) == 5); in main()
117 const char *end = str + ARRAY_LENGTH (str); in main()
122 assert (pp - str == 3); in main()
127 const char str[] = "123V"; in main() local
128 const char *pp = str; in main()
129 assert (ARRAY_LENGTH (str) == 5); in main()
130 const char *end = str + ARRAY_LENGTH (str); in main()
135 assert (pp - str == 3); in main()
140 const char str[] = ".123"; in main() local
141 const char *pp = str; in main()
142 const char *end = str + ARRAY_LENGTH (str); in main()
147 assert (pp - str == 4); in main()
152 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main()
153 assert (pend - str == 4); in main()
157 const char str[] = "0.123"; in main() local
158 const char *pp = str; in main()
159 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
164 assert (pp - str == 5); in main()
168 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main()
169 assert (pend - str == 5); in main()
173 const char str[] = "0.123e0"; in main() local
174 const char *pp = str; in main()
175 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
180 assert (pp - str == 7); in main()
184 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main()
185 assert (pend - str == 7); in main()
189 const char str[] = "123e-3"; in main() local
190 const char *pp = str; in main()
191 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
196 assert (pp - str == 6); in main()
200 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main()
201 assert (pend - str == 6); in main()
205 const char str[] = ".000123e+3"; in main() local
206 const char *pp = str; in main()
207 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
212 assert (pp - str == 10); in main()
216 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == 123); in main()
217 assert (pend - str == 10); in main()
221 const char str[] = "-.000000123e6"; in main() local
222 const char *pp = str; in main()
223 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
228 assert (pp - str == 13); in main()
232 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == -123); in main()
233 assert (pend - str == 13); in main()
237 const char str[] = "-1.23E-1"; in main() local
238 const char *pp = str; in main()
239 const char *end = str + ARRAY_LENGTH (str) - 1; in main()
244 assert (pp - str == 8); in main()
248 assert ((int) roundf (strtod_rl (str, &pend) * 1000.) == -123); in main()
249 assert (pend - str == 8); in main()