1FUNCTION::STRPOS(3stap) A collection of standard strin FUNCTION::STRPOS(3stap)
2
3
4

NAME

6       function::strpos - Returns location of a substring within another
7       string
8

SYNOPSIS

10           strpos:long(s1:string,s2:string)
11

ARGUMENTS

13       s1
14           string to search in
15
16       s2
17           substring to find
18

DESCRIPTION

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

SEE ALSO

25       tapset::string(3stap)
26
27
28
29SystemTap Tapset Reference         June 2018           FUNCTION::STRPOS(3stap)
Impressum