Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bstring(3) — SunOS 0.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

string(3)

BSTRING(3)  —  System Interface Manual — Subroutines

NAME

bcopy, bcmp, bzero − byte string operations

SYNOPSIS

bcopy(b1, b2, length)
char ∗b1, ∗b2;
int length;

bcmp(b1, b2, length)
char ∗b1, ∗b2;
int length;

bzero(b, length)
char ∗b1;
int length;

DESCRIPTION

These functions operate on variable length strings of bytes.  They do not check for null bytes as the routines in string(3) 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, non-zero otherwise.  Both strings are assumed to be length bytes long. 

Bzero places length 0 bytes in the string b1.

SEE ALSO

string(3)

BUGS

The bcmp and bcopy routines take parameters backwards from strcmp and strcpy.

Sun System Release 0.3  —  26 April 1983

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