BCMP(9)

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

πŸ’– BCMP(9) πŸ’–

hey bestie, welcome to this page from the Kernel Developer's Manual β€” it's all about BCMP(9), aka byte-string comparing, but make it vintage πŸ‘‘


✨ NAME ✨

bcmp β€” compare byte string 🫢


🌸 SYNOPSIS 🌸

#include <sys/systm.h>

int
bcmp(const void *b1, const void *b2, size_t len);

🫢 DESCRIPTION 🫢

okay so real talk: the bcmp() interface is obsolete. Do not add new code using it. It will soon be purged. Use memcmp(9) instead. (The bcmp() function is now a macro for memcmp(9).) πŸ’€

The bcmp() function compares byte string b1 against byte string b2, returning zero if they are identical, non-zero otherwise. Both strings are assumed to be len bytes long. Zero-length strings are always identical. ✨

The strings may overlap. πŸŒ€


πŸ‘€ SEE ALSO πŸ‘€


mwah πŸ’‹ this page is from Debian, dated July 7, 2001 β€” ty for coming to my Unix talk, bestie πŸŒˆπŸŽ€

πŸ“¦ where this page comes from
  • nixpkgs unstable: netbsd-source 11.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms