Parameter | Type | Description |
---|---|---|
big_str |
const char * |
The string to search in |
small_str |
const char * |
The string to search for |
Type | Description |
---|---|
int |
First occurence of the small string, or NULL if the string could not be found |
The function httplib_strcasestr()
is a helper function to search a NUL terminated string in another NUL terminated string. The search is case insensitive. A pointer to the first occurence of the substring in the large string is returned, or NULL
if the string could not be found.