strcmp(9)

πŸ“¦
version 7.3.1 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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:

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