MEMCMP(9)
πΈ NAME πΈ
memcmp β compare byte string. And yes bestie, this is the MEMCMP(9) kernel developerβs manual page, so you know itβs giving official Unix energy π
β¨
β¨ SYNOPSIS β¨
#include <sys/systm.h>
int
memcmp(const void *b1, const void *b2, size_t len);
π DESCRIPTION π
okay so memcmp() compares byte string b1 against byte string b2 π«Ά Both strings are assumed to be len bytes long β no cap, thatβs literally the setup π
π RETURN VALUES π
memcmp() returns zero if the two strings are identical π otherwise it returns the difference between the first two differing bytes β and those bytes are treated as unsigned char values, so that '\200' is greater than '\0', for example π
Zero-length strings are always identical, periodt π
π¦ STANDARDS π¦
The memcmp() function conforms to ANSI X3.159-1989 (βANSI C89β) β iconic, standards-approved behavior fr fr π
π thatβs the whole page, bestie! source/version vibes: Debian, dated July 7, 2001, and the manual is MEMCMP(9) β slay and goodbye π
β¨
π¦ 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