blob: 143c9318cc50eecdeafd3785ffbdc66e9c5438b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <stddef.h>
/**
* Allocate size bytes and return a pointer to the allocated memory
*/
void *malloc(size_t size);
/**
* Free the memory space pointed to by ptr
*/
void free(void *ptr);
/**
* Fill the first n bytes of the memory area pointed to by s with the constant byte c.
*/
void *memset(void *s, int c, long unsigned n);
/**
* Copy n bytes from memory area src to memory area dest. The memory areas must not overlap.
*/
void *memcpy(void *__restrict__ dest, const void *__restrict__ src, long unsigned n);
|