function::strpos(3stap)

function::strpos3stap

Returns location of a substring within another string

Usage

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

Arguments

s1

string to search in

s2

substring to find

Overview

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)

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From systemtap-doc 5.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.