15 lines
197 B
Plaintext
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, "");
|
||
|
}
|