function::stringat(3stap)

function::stringat3stap

Returns the char at a given position in the string

Usage

    stringat:long(str:string,pos:long)

Arguments

str

the string to fetch the character from

pos

the position to get the character from (first character is 0)

Overview

This function returns the character at a given position in the string or zero if the string doesn't have as many characters. Reports an error if pos is out of bounds.

See ALSO0

tapset::string(3stap)

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

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