BCMP(9)
π 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
- Copyright (c) 1990, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms