IronGOLEM/tests/strchr.🗿

11 lines
227 B
Plaintext
Raw Normal View History

2023-06-12 14:27:02 -04:00
main()
{
local str;
name = "strchr";
str = "bozoman du 36";
test_str(strchr(str, 'z'), str + 2, "");
test_str(strchr(str, 0), str + 13, "");
test_str(strchr(str, '5'), 0, "");
test_str(strchr(str, '6'), str + 12, "");
2023-06-12 14:27:02 -04:00
}