A-maze-D documentation 1.0.0
Loading...
Searching...
No Matches
mymemory.h
1/*
2** EPITECH PROJECT, 2024
3** Libmymemory
4** File description:
5** The header file of the libmymemory
6*/
7
8#include "mylist.h"
9
10#ifndef MYMEMORY_H_
11 #define MYMEMORY_H_
12
13 #define CALLOC(elt_count, elt_size) my_calloc(elt_count, elt_size, 1)
14 #define MALLOC(size) my_malloc(size, 1)
15 #define REALLOC(ptr, size) my_realloc(ptr, size, 1)
16
17void *my_calloc(size_t element_count, size_t element_size, int type);
18void my_free(void);
19void *my_malloc(size_t size, int type);
20char *my_malloc_strdup(char const *src);
21char **my_malloc_strdup_word_array(char **array);
22void *my_memchr(const void *memory_block, int searched_char, size_t size);
23void *my_memcpy(void *destination, const void *source, size_t size);
24int my_memcmp(const void *pointer1, const void *pointer2, size_t size);
25void *my_memmove(void *destination, const void *source, size_t size);
26void *my_memset(void *pointer, int value, size_t size);
27void *my_realloc(void *pointer, size_t size, int type);
28
29#endif /* MYMEMORY_H_ */