function::strpos
Returns location of a substring within another string
- Provided by: systemtap-doc (Version: 5.0-2ubuntu1)
- Source: systemtap
- Report a bug
Returns location of a substring within another string
strpos:long(s1:string,s2:string)
s1
s2
This function returns location of the first occurence of string s2 within s1, namely the return value is 0 in case s2 is a prefix of s1. If s2 is not a substring of s1, then the return value is -1.