|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "memory.h"Functions | |
| void * | memcpy (void *dest, const void *src, size_t count) |
| copies n bytes from memory area src to memory area dst. | |
| void * | memmove (void *dest, const void *src, size_t count) |
| copies n bytes from memory area src to memory area dst. | |
| void * | memset (void *dest, int value, size_t count) |
| fills the first n bytes of the memory area pointed to by dst with the constant byte c. | |
| int | memcmp (const void *lhs, const void *rhs, size_t count) |
| compares the first n bytes of the memory areas s1 and s2. | |
| void * memcpy | ( | void * | dst, |
| const void * | src, | ||
| size_t | n ) |
copies n bytes from memory area src to memory area dst.
The memory areas must not overlap.
| dst | the destination memory area. |
| src | the source memory area. |
| n | the number of bytes to copy. |
| void * memmove | ( | void * | dst, |
| const void * | src, | ||
| size_t | n ) |
copies n bytes from memory area src to memory area dst.
The memory areas may overlap.
| dst | the destination memory area. |
| src | the source memory area. |
| n | the number of bytes to copy. |
| void * memset | ( | void * | dst, |
| int | c, | ||
| size_t | n ) |
fills the first n bytes of the memory area pointed to by dst with the constant byte c.
| dst | the memory area to fill. |
| c | the byte to fill the memory area with. |
| n | the number of bytes to fill. |
| int memcmp | ( | const void * | s1, |
| const void * | s2, | ||
| size_t | n ) |
compares the first n bytes of the memory areas s1 and s2.
| s1 | the first memory area to compare. |
| s2 | the second memory area to compare. |
| n | the number of bytes to compare. |