strcspn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual page for strcspn(9) β€” and no cap, this one is a tiny little icon. πŸ’…

official NAME vibe: Calculate the length of the initial substring of @s which does not contain letters in @reject.

Like, it's giving β€œhow much of the start of this string is safe from the reject squad?” energy. πŸŽ€

✨ SYNOPSIS ✨

size_t strcspn (const char *s , const char *reject );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • s β€” the string to be searched. The main character being scanned, fr fr.
  • reject β€” the string to avoid. The no-fly list, bestie. πŸ’€

🌈 SEE ALSO 🌈

Kernel file: ./lib/string.c β€” and the whole see-also squad is strncasecmp(9), stpcpy(9), strcmp(9), strncmp(9), strchr(9), strchrnul(9), strnchrnul(9), strrchr(9), strnchr(9), strspn(9), strpbrk(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). 🫢


mwah πŸ’‹ this cutie is from ./lib, dated October 2026, and the page is strcspn(9) β€” slay and goodbye. πŸ¦‹

πŸ“¦ where this page comes from