GitOS
Operating system exercise
Loading...
Searching...
No Matches
memory.h
Go to the documentation of this file.
1#pragma once
2#include <stddef.h>
3
4void* memset(void* ptr, int c, size_t size);
5void* memcpy(void* dstptr, const void* srcptr, size_t size);
6int memcmp(void* ptr1, void* ptr2, size_t len);
uint16_t size
Definition gdt.h:0
void * memset(void *ptr, int c, size_t size)
Sets first bytes of memory pointed to specified value.
Definition memory.c:13
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...
Definition memory.c:51
void * memcpy(void *dstptr, const void *srcptr, size_t size)
Copies memory from one place to another.
Definition memory.c:31