strpbrk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… strpbrk β€” Kernel API Manual ✨

okay so bestie, welcome to strpbrk(9) β€” yes that's the Kernel API Manual, and yes we're absolutely going to understand it together 🫢


🌸 NAME 🌸

strpbrk β€” find the first occurrence of a set of characters. that's it. that's the whole vibe check: you give it a posse of characters, it finds the first one of that posse hanging out in your string πŸ’…


✨ SYNOPSIS ✨

char * strpbrk (const char *cs , const char *ct );

look at that signature. immaculate. char * coming back at you like a little gift πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cs β€” the string to be searched 🌸 like, this is the main character, the string we're snooping through
  • ct β€” the characters to search for ✨ the itty-bitty squad we're looking for inside cs

πŸ‘‘ SEE ALSO πŸ‘‘

okay so the kernel file is ./lib/string.c and honestly it's giving family reunion, because look at this whole friend group 😭:

strncasecmp(9), stpcpy(9), strcmp(9), strncmp(9), strchr(9), strchrnul(9), strnchrnul(9), strrchr(9), strnchr(9), strspn(9), strcspn(9), strsep(9), memset(9), memset16(9), memset32(9), memset64(9), memcpy(9), memmove(9), memcmp(9), bcmp(9), memscan(9), strstr(9), strnstr(9), memchr(9), memchr_inv(9)

literally the whole string-and-memory clique, no cap πŸ”₯ go say hi to all of them, iykyk πŸ’–


ngl bestie, if you need one of the above instead, you probably know it β€” this crew covers everything string-y and memory-y you could ever want 🧚

and that's the page!! 🌈 sourced from the kernel file ./lib/string.c, dated October 2026, and living happily under the ./lib directory β€” slay, periodt, go write some C πŸ’œπŸŽ€

πŸ“¦ where this page comes from