wip
This commit is contained in:
parent
5b612127b2
commit
4a0df8db6b
3 changed files with 41 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue