You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Returns a pointer to the beginning of the located substring. Returns NULL if the substring is not found or 'fromIndex' is larger than the length of str */char*sc_str_indexof(constchar*str, constchar*needle, uint32_tfromIndex, intreverse);
maybe we can do something like this, similar to strstr(), it may return located string position.
Activity
tezc commentedon Mar 27, 2025
probably you can do it with
strstr(), no? something likestrstr(str + fromIndex, substr)jsbxyyx commentedon Mar 27, 2025
I'm describe error. return value type is int.
tezc commentedon Mar 29, 2025
maybe we can do something like this, similar to strstr(), it may return located string position.