bcmp(3)

πŸŽ€ bcmp β€” byte compare πŸŽ€

okay bestie, pull up a chair, because we're talking about bcmp from the Library Functions Manual ✨ this is a libc situation, from the Standard C library (libc, -lc) β€” yes, that libc. the one your linker is always yelling about. πŸ’…


✨ SYNOPSIS ✨

#include <strings.h>

[[deprecated]] int bcmp(size_t n;
                        const void s1[n], const void s2[n], size_t n);

yeah. she's deprecated. the [[deprecated]] is right there in the signature, loud and proud, like a girl showing up to the group chat with receipts. 😭


πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: bcmp() is identical to memcmp(3). literally the same thing. same energy, same behavior, no notes.

and because of that, the move is: use memcmp(3) instead. that's it. that's the whole assignment. bcmp() is the older cousin who still shows up to the party, but everyone's already moved on to memcmp(3). no shade! just facts. πŸ¦‹


🌈 STANDARDS 🌈

None.

not a single one. she's not in any standard, bestie. not one. vibe check: failed. πŸ’€


πŸ‘‘ HISTORY πŸ‘‘

okay so the lore is actually kinda iconic:

  • she comes from 4.3BSD β€” ancient. historic. founding mother behavior. πŸ‘‘
  • got marked as LEGACY in POSIX.1-2001 β€” like, "we still acknowledge her but don't @ us"
  • and then in POSIX.1-2008 she was removed. gone. not invited back. 😭

so if you see bcmp() in the wild, just know you're looking at a fossil that somehow still compiles. respect the elders fr fr 🫢


🌸 SEE ALSO 🌸

  • memcmp(3) β€” the one you should actually be using, no cap

⚠️ real talk: this function is deprecated, and the manpage literally says use memcmp(3) instead. don't start new code with bcmp(). i'm begging. πŸ™ˆ

and that's the whole page, babe πŸ’œ this edition rode in with Linux man-pages 6.20, dated 2026-08-10 β€” so if you're reading this, know that the byte-compare drama is officially settled. slay, stay deprecated, and go call memcmp(3) instead. periodt. βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms