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
17
void
*my_calloc(
size_t
element_count,
size_t
element_size,
int
type);
18
void
my_free(
void
);
19
void
*my_malloc(
size_t
size,
int
type);
20
char
*my_malloc_strdup(
char
const
*src);
21
char
**my_malloc_strdup_word_array(
char
**array);
22
void
*my_memchr(
const
void
*memory_block,
int
searched_char,
size_t
size);
23
void
*my_memcpy(
void
*destination,
const
void
*source,
size_t
size);
24
int
my_memcmp(
const
void
*pointer1,
const
void
*pointer2,
size_t
size);
25
void
*my_memmove(
void
*destination,
const
void
*source,
size_t
size);
26
void
*my_memset(
void
*pointer,
int
value,
size_t
size);
27
void
*my_realloc(
void
*pointer,
size_t
size,
int
type);
28
29
#endif
/* MYMEMORY_H_ */
lib
mymemory
mymemory.h
Generated by
1.11.0