Manual browser: bstring(3)

Section:
Page:
BSTRING(3) Library Functions Manual BSTRING(3)

NAME

memccpy, memchr, memcmp, memcpy, memmem, memmove, memsetbyte string operations

LIBRARY

Standard C Library (libc, -lc)

SYNOPSIS

#include <string.h>

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 *
memmem(const void *block, size_t blen, const void *pat, size_t plen);

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

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

DESCRIPTION

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.

STANDARDS

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

HISTORY

The function memccpy() appeared in 4.3BSD.
February 9, 2007 NetBSD 7.0