1FUNCTION::STRINGAT(3stap)A collection of standard strinFUNCTION::STRINGAT(3stap)
2
3
4

NAME

6       function::stringat - Returns the char at a given position in the string
7

SYNOPSIS

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

ARGUMENTS

12       str
13           the string to fetch the character from
14
15       pos
16           the position to get the character from (first character is 0)
17

DESCRIPTION

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

SEE ALSO

24       tapset::string(3stap)
25
26
27
28SystemTap Tapset Reference       November 2020       FUNCTION::STRINGAT(3stap)
Impressum