feat: add contains functions

This commit is contained in:
2026-01-02 19:13:56 +01:00
parent f6cf78a10b
commit 4245d152fd
6 changed files with 69 additions and 5 deletions

View File

@@ -139,4 +139,8 @@ char* str_trim(const char* str) {
new_str[end-start+1] = '\0';
return new_str;
}
}
uint8_t str_contains(const char* str, const char* substr) {
return strstr(str, substr) != NULL;
}