OpenBSD manual page server

Manual Page Search Parameters

BSTRING(3) Library Functions Manual BSTRING(3)

bstringbyte string operations

#include <string.h>

int
bcmp(const void *b1, const void *b2, size_t len);

void
bcopy(const void *src, void *dst, size_t len);

void
bzero(void *b, size_t len);

void *
memchr(const void *b, int c, size_t len);

int
memcmp(const void *b1, const void *b2, size_t len);

void *
memccpy(void *dst, const void *src, int c, size_t len);

void *
memcpy(void *dst, const void *src, size_t len);

void *
memmove(void *dst, const void *src, size_t len);

void *
memset(void *b, int c, size_t len);

These functions operate on variable length strings of bytes. They do not check for terminating NUL bytes as the routines listed in string(3) do.

See the specific manual pages for more information.

bcmp(3), bcopy(3), bzero(3), memccpy(3), memchr(3), memcmp(3), memcpy(3), memmove(3), memset(3)

The functions memchr(), memcmp(), memcpy(), memmove(), and memset() conform to ANSI X3.159-1989 (“ANSI C89”).

The bcmp(), bcopy(), and bzero() functions first appeared in 4.2BSD. The memchr(), memcmp(), memccpy(), memcpy(), and memset() functions first appeared in AT&T System V UNIX and were reimplemented for 4.3BSD-Tahoe. The memmove() function first appeared in 4.3BSD-Reno.

July 25, 2011 OpenBSD-5.1