IronGOLEM/tests/strdup.🗿

15 lines
197 B
Plaintext
Raw Permalink Normal View History

2023-06-18 12:48:08 -04:00
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, "");
}