GitOS
Operating system exercise
|
Functions | |
void * | memset (void *ptr, int c, size_t size) |
Sets first bytes of memory pointed to specified value. | |
void * | memcpy (void *dstptr, const void *srcptr, size_t size) |
Copies memory from one place to another. | |
int | memcmp (void *ptr1, void *ptr2, size_t len) |
Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2. | |
int memcmp | ( | void * | ptr1, |
void * | ptr2, | ||
size_t | len | ||
) |
Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2.
ptr1 | Pointer to block of memory |
ptr2 | Pointer to block of memory |
len | Number of bytes to compare |
void * memcpy | ( | void * | dstptr, |
const void * | srcptr, | ||
size_t | size | ||
) |
Copies memory from one place to another.
dstptr | Destination pointer |
srcptr | Source pointer |
size | Length of copied memory |
References size.
void * memset | ( | void * | ptr, |
int | c, | ||
size_t | size | ||
) |
Sets first bytes of memory pointed to specified value.
ptr | Pointer to the block of memory to fill |
c | Value to be set |
size | Number of bytes to set |
References size.