IronGOLEM/tests/strcpy.🗿

21 lines
262 B
Plaintext
Raw Normal View History

2023-07-23 09:00:08 -04:00
main()
{
local str;
name = "strcpy";
str = galloc(10);
strcpy(str, "yo");
test_str(str, "yo", "");
strcpy(str, "");
test_str(str, "", "");
strcpy(str, "bonjorsss");
strcpy(str, "bonjour");
test_str(str, "bonjour", "set last \0");
free(str);
}