Lines Matching refs:myfoo
44 foo myfoo;
46 ASSERT_EXIT(strncpy(myfoo.a, "01234567890", copy_amt),
56 foo myfoo;
59 ASSERT_EXIT(sprintf(myfoo.a, "%s", source_buf),
69 foo myfoo;
70 ASSERT_EXIT(sprintf(myfoo.a, "0123456789"),
79 foo myfoo;
84 result = vsprintf(myfoo.a, fmt, va); // should crash here
104 foo myfoo;
110 result = vsnprintf(myfoo.a, size, fmt, va); // should crash here
134 foo myfoo;
136 ASSERT_EXIT(strcpy(myfoo.empty, src),
148 foo myfoo;
150 ASSERT_EXIT(strcpy(myfoo.empty, src),
162 foo myfoo;
164 ASSERT_EXIT(strcpy(myfoo.one, src),
175 foo myfoo;
176 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a));
177 myfoo.b[0] = '\0';
178 ASSERT_EXIT(printf("%s", strchr(myfoo.a, 'a')),
188 foo myfoo;
189 memcpy(myfoo.a, "0123456789", 10);
190 memcpy(myfoo.b, "01234", 6);
191 ASSERT_EXIT(printf("%s", strrchr(myfoo.a, 'a')),
201 foo myfoo;
202 strcpy(myfoo.a, "01");
203 size_t n = strlen(myfoo.a);
204 ASSERT_EXIT(strlcpy(myfoo.one, myfoo.a, n),
214 foo myfoo;
215 strcpy(myfoo.a, "01");
216 myfoo.one[0] = '\0';
217 size_t n = strlen(myfoo.a);
218 ASSERT_EXIT(strlcat(myfoo.one, myfoo.a, n),
230 foo myfoo;
232 strncpy(myfoo.a, "012345678", n);
233 ASSERT_EXIT(strncat(myfoo.a, "9", n), testing::KilledBySignal(SIGABRT), "");
242 foo myfoo;
243 myfoo.a[0] = '\0';
245 ASSERT_EXIT(strncat(myfoo.a, "0123456789", n), testing::KilledBySignal(SIGABRT), "");
251 foo myfoo;
252 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a)); // unterminated string
253 myfoo.b[0] = '\0';
255 ASSERT_EXIT(strncat(myfoo.b, myfoo.a, n), testing::KilledBySignal(SIGABRT), "");
265 foo myfoo;
266 myfoo.a[0] = '\0';
267 ASSERT_EXIT(strcat(myfoo.a, src), testing::KilledBySignal(SIGABRT), "");
273 foo myfoo;
274 memcpy(myfoo.a, "0123456789", sizeof(myfoo.a)); // unterminated string
275 myfoo.b[0] = '\0';
276 ASSERT_EXIT(strcat(myfoo.b, myfoo.a), testing::KilledBySignal(SIGABRT), "");
281 foo myfoo;
282 strcpy(myfoo.a, "012345678");
283 size_t n = strlen(myfoo.a) + 2;
284 ASSERT_EXIT(snprintf(myfoo.b, n, "a%s", myfoo.a), testing::KilledBySignal(SIGABRT), "");
289 foo myfoo;
290 memcpy(myfoo.b, "0123456789", sizeof(myfoo.b));
292 ASSERT_EXIT(bzero(myfoo.b, n), testing::KilledBySignal(SIGABRT), "");