Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bstring(3) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

string(3)

memory(3C)

string(3C)

strings(5)

bstring(3)              (BSD Compatibility Package)              bstring(3)

NAME
     bstring: bcopy, bcmp, bzero - bit and byte string operations

SYNOPSIS
     /usr/ucb/cc [flag ...] file ... -lucb

     #include <strings.h>

     void bcopy(const void *s1, void *s2, sizet n);

     int bcmp(const void *s1, const void *s2, sizet n);

     void bzero(void *s, sizet n);

DESCRIPTION
     bcopy copies n bytes from string s1 to the string s2. Overlapping
     strings are handled correctly.

     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 do.

     The bcmp() function compares the first n bytes of the area pointed to
     by s1 with the area pointed to by s2.

     bzero places n 0 bytes in the string s.

RETURN VALUE
     The bcopy() function returns no value.

     The bcmp() function returns 0 if s1 and s2 are identical, non-zero
     otherwise. Both areas are assumed to be n bytes long. If the value of
     n is 0, bcmp() returns 0.

     The bzero() function returns no value.

APPLICATION USAGE
     For portability to implementations conforming to earlier versions of
     this description, memmove() is preferred over this function.

SEE ALSO
     string(3), memory(3C), string(3C), strings(5).













Page 1                       Reliant UNIX 5.44                Printed 11/98

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