FUNCTION::ISINSTR(3stap)

πŸ’– FUNCTION::ISINSTR πŸ’–

okay bestie, so this is a page from the SystemTap Tapset Reference, section 3stap β€” yeah the stap manual, we love her she's iconic. and today's main character is a little string function called isinstr πŸ¦‹


✨ NAME ✨

function::isinstr β€” Returns whether a string is a substring of another string πŸ’…


✨ SYNOPSIS ✨

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

so it takes two strings and hands you back a long, periodt. 🌸


✨ ARGUMENTS ✨

  • s1 β€” the string you're searching in, aka the haystack, the place where the vibe lives πŸ”
  • s2 β€” the substring you're trying to find, aka the little baby string you're hunting for πŸŽ€

✨ DESCRIPTION ✨

okay so here's the tea πŸ“ β€” this function returns 1 if string s1 contains s2, and otherwise it returns 0. that's it. that's the whole function. no cap. it's giving "does this string live inside that string" and honestly? obsessed. truth value, but make it strings ✨

ngl bestie, it's literally just a yes-or-no situation wearing a long costume. 1 = found it πŸ’–, 0 = not found 😭

✨ SEE ALSO ✨


that's the whole page, you ate it πŸ’… SystemTap Tapset Reference, September 2026 edition β€” mwah, go write some probes bestie πŸ«ΆπŸ‘‘

πŸ“¦ where this page comes from