feat: add contains functions

This commit is contained in:
tilo committed 2026-01-02 19:13:56 +01:00
1 parent f6cf78a10b
commit 4245d152fd
6 files changed
+69 -5

No files matched your search

+5 -1
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;
}