strcspn(9)
π 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@swhich 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
- 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