strcmp(9)
π strcmp(9) β Kernel API Manual πΈ
Okay so we are in the Kernel API Manual and this page is strcmp(9), no cap. It's short, it's iconic, it's literally about comparing two strings.
β¨ NAME β¨
strcmp β compare two strings. That's the whole assignment, bestie. The manpage says "Compare two strings" and honestly? Respect the minimalism.
π§ SYNOPSIS π§
Here's the signature, copied exactly because we do not freestyle C:
int strcmp (const char *cs , const char *ct );
π ARGUMENTS π
Two strings walk into a kernel function, and the vibes are extremely straightforward:
csβ one string. That's the official description: "One string." Iconic brevity.ctβ another string. Official description: "Another string." The manpage is lowkey serving less-is-more.
π SEE ALSO π
Kernel file ./lib/string.c is in the mix, plus this entire friend group of kernel string/memory icons:
strncasecmp(9)stpcpy(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)strstr(9)strnstr(9)memchr(9)memchr_inv(9)
That's the whole page, bestie. No extra lore, no invented return-value discourse β just compare two strings and go.
Source/version: ./lib Β· Date: October 2026 Β· Manual: strcmp(9) β mwah π
π¦ 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