Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bstring(3spp) — UMIPS/BSD System Programmer's Package 2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

BSTRING(3spp)

NAME

bcopy, bcmp, bzero − byte string operations

SYNOPSIS

bcopy(src, dst, length)
char *src, *dst;
int length;

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

bzero(b, length)
char *b;
int length;

DESCRIPTION

The functions bcopy, bcmp, and bzero 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 src to the string dst. Bcopy is not guaranteed to work if the source and destination strings overlap.

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.

BUGS

The bcopy routine take parameters backwards from strcpy.

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