add: realloc

This commit is contained in:
2023-07-23 15:35:32 +02:00
parent c6608ad4eb
commit f9fa2a5a12
2 changed files with 32 additions and 0 deletions

11
tests/reallocarray.🗿 Normal file
View File

@ -0,0 +1,11 @@
main()
{
local tmp;
name = "reallocarray";
tmp = strdup("yo");
if (tmp == NULL)
return 1;
tmp = reallocarray(tmp, strlen(tmp), 5);
test_str(tmp, "yo", "");
}