Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bcmp(3) — A/UX 2.0

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, return- ing 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. FILES /usr/include/sys/param.h BUGS The bcmp and bcopy routines take parameters backwards from strcmp and strcpy. SEE ALSO memory(3C), string(3). April, 1990 1

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