1FUNCTION::STRPOS(3stap) A collection of standard strin FUNCTION::STRPOS(3stap)
2
3
4
6 function::strpos - Returns location of a substring within another
7 string
8
10 strpos:long(s1:string,s2:string)
11
13 s1
14 string to search in
15
16 s2
17 substring to find
18
20 This function returns location of the first occurence of string s2
21 within s1, namely the return value is 0 in case s2 is a prefix of s1.
22 If s2 is not a substring of s1, then the return value is -1.
23
25 tapset::string(3stap)
26
27
28
29SystemTap Tapset Reference April 2023 FUNCTION::STRPOS(3stap)