str_has_prefix(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the Kernel API Manual page for str_has_prefix(9) β€” a tiny function with major β€œdoes exactly what its name says” energy. Let’s get into it πŸ’…βœ¨

🌸 NAME 🌸

str_has_prefix β€” test if a string has a given prefix. That’s the whole gig, and it ate.

✨ SYNOPSIS ✨

bool str_has_prefix (const char *str , const char *prefix );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” the string you’re testing. Like, the main character string in this situation.
  • prefix β€” the string you’re checking to see if str starts with. The beginning vibe, basically.

πŸ’– RETURN πŸ’–

Returns true if str starts with prefix. Returns false otherwise. No cap, that’s it.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./tools/tracing/rtla/src/utils.h β€” the source-side bestie for this one.

Signed off from ./tools/tracing/rtla/src, stamped October 2026, and still serving str_has_prefix(9) realness πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from