CMPBYTES(3)
πΈ NAME πΈ
okay bestie, meet cmpbytes() β it literally compares data, and this page is coming at you from SchilyΒ΄s LIBRARY FUNCTIONS. no cap, it's the friend who checks if two memory chunks match or where they first disagree, and it does it with main character energy. π
cmpbytes() β compare data. periodt. π¦
β¨ SYNOPSIS β¨
ssize_t cmpbytes(from, to, cnt)
const void *from;
const void *to;
ssize_t cnt;
π DESCRIPTION π
So cmpbytes() compares size bytes from from to to. that's the whole vibe: two memory chunks get compared, and the function tells you if they're giving the same energy or not. β¨
π RETURN VALUE π
cntβ both memory chunks are equal, slay. β0..cnt-1β the offset of the first differing character in the chunks. that's the exact spot where they stop matching, iykyk. π₯
π ERRORS π
No errors are defined. literally none. not a single one. π
π«Ά SEE ALSO π«Ά
all the bestie functions in the group chat:
cmpmbytes(3)cmpnullbytes(3)fillbytes(3)findbytes(3)movebytes(3)movecbytes(3)swapbytes(3)zerobytes(3)
π NOTES π
This routine correctly handles overlapping buffers. yes bestie, overlapping buffers get handled properly β no chaotic memory drama. π
CMPBYTES(3) was written by Joerg Schilling, dated 2022/09/09, and comes from SchilyΒ΄s LIBRARY FUNCTIONS β bye bestie, go compare some data responsibly π
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 1988-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms