Next: Character Classification and Conversion Up: C Standard Library Functions Previous: C Standard Library Functions

Buffer Manipulation

#include <memory.h>

void *memchr (void *s, int c, size_t n) - Search for a character in a buffer.

int memcmp (void *s1, void *s2, size_t n) - Compare two buffers.

void *memcpy (void *dest, void *src, size_t n) - Copy one buffer into another .

void *memmove (void *dest, void *src, size_t n) - Move a number of bytes from one buffer lo another.

void *memset (void *s, int c, size_t n) - Set all bytes of a buffer to a given character.


Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994