table of contents
other versions
- buster 4.0-1
- buster-backports 4.4-1~bpo10+1
- testing 4.4-2
- unstable 4.4-2
- experimental 4.5-1
FUNCTION::STRPOS(3stap) | A collection of standard strin | FUNCTION::STRPOS(3stap) |
NAME¶
function::strpos - Returns location of a substring within another stringSYNOPSIS¶
strpos:long(s1:string,s2:string)
ARGUMENTS¶
s1string to search in
s2
substring to find
DESCRIPTION¶
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.SEE ALSO0¶
tapset::string(3stap)November 2020 | SystemTap Tapset Reference |