1FUNCTION::STRINGAT(3stap)A collection of standard strinFUNCTION::STRINGAT(3stap)
2
3
4
6 function::stringat - Returns the char at a given position in the string
7
9 stringat:long(str:string,pos:long)
10
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
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
24 tapset::string(3stap)
25
26
27
28SystemTap Tapset Reference May 2019 FUNCTION::STRINGAT(3stap)