patch_seq_string_find

Function patch_seq_string_find 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_string_find(stack: Stack) -> Stack
Expand description

Find the first occurrence of a substring

Stack effect: ( str needle – int )

Returns the character index of the first occurrence of needle in str. Returns -1 if not found.

§Safety

Stack must have two Strings on top