NAME
memccpy, memchr, memcmp, memcpy, memmove, memset - memory
operations

SYNOPSIS
#include <memory.h>

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

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

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

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

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

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

DESCRIPTION
Memccpy copies bytes from memory area srctodst, stopping after
coping the first occurrence of character corlenbytes. It returns a
pointer to the first byte in dst following the copied character c,
or a NULL pointer if c is not found within the first len bytes of
src.

Memchr returns a pointer to the first occurrence of c in memory
area b, or NULL if no such byte exists within len bytes.

Memcmp compares memory areas b1andb2, returning an integer value
less than, equal to, or greater than 0, as b1 is lexicographically
less than, equal to, or greater than b2. Both strings are assumed
to be len bytes long. Zero-length strings are always identical.

Memcpy copies len bytes from memory area srcintodst, and returns
the original value of dst.

Memset writes len bytes of value c into memory area b.

SEE ALSO
bstring(3), string(3), swab(3)

BUGS
Copying overlapping strings with memcpy may produce surprises; use
bcopy(3), instead.