forked from starnakin/IronGOLEM
add: strdup
This commit is contained in:
14
tests/strdup.🗿
Normal file
14
tests/strdup.🗿
Normal file
@ -0,0 +1,14 @@
|
||||
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, "");
|
||||
}
|
Reference in New Issue
Block a user