12 lines
167 B
Plaintext
12 lines
167 B
Plaintext
main()
|
|
{
|
|
local tmp;
|
|
name = "reallocarray";
|
|
|
|
tmp = strdup("yo");
|
|
if (tmp == NULL)
|
|
return 1;
|
|
tmp = reallocarray(tmp, strlen(tmp), 5);
|
|
test_str(tmp, "yo", "");
|
|
}
|