OS Manuals

function::strpos(3stap)

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

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

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


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

s1

string to search in

s2

substring to find

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.

tapset::string(3stap)

September 2026 SystemTap Tapset Reference Ver

systemtap 5.6-r0 · enterprise-packages · ingested 2026-10-02