strpbrk(9)
π 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 throughctβ the characters to search for β¨ the itty-bitty squad we're looking for insidecs
π 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms