strstr(9)
π 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:
strncasecmp(9)stpcpy(9)strcmp(9)strncmp(9)strchr(9)strchrnul(9)strnchrnul(9)strrchr(9)strnchr(9)strspn(9)strcspn(9)strpbrk(9)strsep(9)memset(9)memset16(9)memset32(9)memset64(9)memcpy(9)memmove(9)memcmp(9)bcmp(9)memscan(9)strnstr(9)memchr(9)memchr_inv(9)
π«Ά cute sign-off: source ./lib, dated October 2026, page strstr(9). bye bestie, go find that substring πβ¨
π¦ 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