|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "stdint.h"Go to the source code of this file.
Functions | |
| void * | memcpy (void *dest, const void *src, size_t count) |
| copy memory from source to destination. | |
| void * | memmove (void *dest, const void *src, size_t count) |
| move memory from source to destination, allowing for overlapping regions. | |
| void * | memset (void *dest, int value, size_t count) |
| set a block of memory to a specific value. | |
| int | memcmp (const void *lhs, const void *rhs, size_t count) |
| compare two blocks of memory. | |
| void * memcpy | ( | void * | dest, |
| const void * | src, | ||
| size_t | count ) |
copy memory from source to destination.
copies n bytes from memory area src to memory area dst.
| dest | destination buffer. |
| src | source buffer. |
| count | number of bytes to copy. |
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 * | dest, |
| const void * | src, | ||
| size_t | count ) |
move memory from source to destination, allowing for overlapping regions.
copies n bytes from memory area src to memory area dst.
| dest | destination buffer. |
| src | source buffer. |
| count | number of bytes to move. |
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 * | dest, |
| int | value, | ||
| size_t | count ) |
set a block of memory to a specific value.
fills the first n bytes of the memory area pointed to by dst with the constant byte c.
| dest | destination buffer. |
| value | value to set each byte to. |
| count | number of bytes to set. |
| 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 * | lhs, |
| const void * | rhs, | ||
| size_t | count ) |
compare two blocks of memory.
compares the first n bytes of the memory areas s1 and s2.
| lhs | left hand side buffer. |
| rhs | right hand side buffer. |
| count | number of bytes to compare. |
| s1 | the first memory area to compare. |
| s2 | the second memory area to compare. |
| n | the number of bytes to compare. |