up | Inhaltsverzeichniss | Kommentar

Manual page for bstring(3C)

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

SYNOPSIS

#include <strings.h>

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

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

void bzero(void *s, size_t n);

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

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

bcmp() compares byte string s1 against byte string s2, returning zero if they are identical, 1 otherwise. Both strings are assumed to be n bytes long. bcmp() using n zero bytes always returns zero.

bzero() places n 0 bytes in the string s.

WARNINGS

The bcmp() and bcopy() routines take parameters backwards from strcmp and strcpy, respectively. See string.3c

SEE ALSO

memory.3c string.3c


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97