strstr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… strstr(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for strstr β€” the lowkey iconic little C-string hunter. no cap, this page is short and sweet, so let's get into it 🫢


✨ NAME ✨

strstr β€” Find the first substring in a %NUL terminated string. periodt πŸ’–

🌸 SYNOPSIS 🌸

char * strstr (const char *s1 , const char *s2 );

πŸŽ€ ARGUMENTS πŸŽ€

  • s1 β€” The string to be searched. this is the main character we're digging through πŸ”
  • s2 β€” The string to search for. this is the substring we're hunting down 🎯

🌈 SEE ALSO 🌈

Kernel file ./lib/string.c β€” and omg the whole friend group is here, all the string/memory besties:


🫢 cute sign-off: source ./lib, dated October 2026, page strstr(9). bye bestie, go find that substring πŸ’–βœ¨

πŸ“¦ where this page comes from