This commit is contained in:
Jef Roosens 2024-02-14 10:35:17 +01:00
parent 5b612127b2
commit 4a0df8db6b
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
3 changed files with 41 additions and 0 deletions

View file

@ -86,4 +86,17 @@ uint64_t lnm_atoi(const char *s, size_t len);
*/
uint64_t lnm_digits(uint64_t num);
/**
* Find the first case-insensitive occurence of s2 in s1.
*
* @param out pointer to store start of match in
* @param s1 pointer to string to look in
* @param s1_len length of s1
* @param s2 string to search for in s1
* @param s2_len length of s2
* @return true if found, false otherwise
*/
bool lnm_stristr(const char **out, const char *s1, size_t s1_len,
const char *s2, size_t s2_len);
#endif