Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bcmp(3) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

memory(3C)

string(3)




bstring(3) bstring(3)
NAME bcopy, bcmp, bzero - bit and byte string operations SYNOPSIS #include <sys/param.h> int bcopy(b1, b2, length) char *b1, *b2; int length; int bcmp(b1, b2, length) char *b1, *b2; int length; int bzero(b, length) char *b; int length; DESCRIPTION The macro bcopy, and the functions bcmp and bzero operate on variable length strings of bytes. They do not check for null bytes as the routines in string(3C) do. bcopy copies length bytes from string b1 to the string b2. bcmp compares byte string b1 against byte string b2, returning zero if they are identical, nonzero otherwise. Both strings are assumed to be length bytes long. bzero places length 0 bytes in the string b1. LIMITATIONS The bcmp and bcopy routines take parameters backwards from strcmp and strcpy. FILES /usr/include/sys/param.h SEE ALSO memory(3C), string(3) January 1992 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026