add: strstr

This commit is contained in:
2023-06-18 16:48:35 +02:00
parent 4f0d18ee68
commit 889006903b
2 changed files with 23 additions and 0 deletions

8
tests/strstr.🗿 Normal file
View File

@ -0,0 +1,8 @@
main()
{
name = "strstr";
test_str(strstr("test", "t"), "test", "");
test_str(strstr("test", "st"), "st", "");
test_str(strstr("hello world!", "s"), 0, "non present to_find");
}