IronGOLEM/tests/strdup.🗿
2023-06-18 18:48:08 +02:00

15 lines
197 B
Plaintext

main()
{
local ptr;
name = "strdup";
ptr = "bozoman";
test_str(strdup(ptr), ptr, "");
ptr = "";
test_str(strdup(ptr), ptr, "");
ptr = "hello world!";
test_str(strdup(ptr), ptr, "");
}