FUNCTION::STRINGAT(3stap)

✨ NAME ✨

okay so bestie, welcome to function::stringat β€” she returns the char at a given position in the string πŸ’…

(also hi, you're in the SystemTap Tapset Reference, the "A collection of standard string functions" corner of the manual, section 3stap β€” iconic, no cap πŸŽ€)


🌸 SYNOPSIS 🌸

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • str β€” the string you're fetching the character from, bestie. that's the vibe check source πŸ’–
  • pos β€” the position to get the character from. and listen, the first character is 0, so it's giving zero-indexed, fr fr πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what she does: this function returns the character at a given position in the string, or zero if the string doesn't have as many characters. that's the whole serve ✨

but not me needing to warn you β€” she also reports an error if pos is out of bounds 😭 so don't be out here just throwing random positions at her, she WILL clock it. stay in your lane, stay in bounds, periodt πŸ’€


🌈 SEE ALSO 🌈


and that's the page bestie!! πŸŽ€ from the SystemTap Tapset Reference, version line living its September 2026 fantasy, 3stap section, FUNCTIO...TRINGAT(3stap) energy, slay, go forth and index responsibly πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from