Skip to content

Commit 84f5b1b

Browse files
committed
add README
1 parent dc3f1dc commit 84f5b1b

1 file changed

Lines changed: 25 additions & 7 deletions

File tree

README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
# bonus :
1+
# malloc
22

3-
- Manage the use of your malloc in a multi-threaded program (so to be “thread safe” using the pthread lib).
4-
- LOGGING and LOGFILE define in malloc.h
5-
- show_alloc_mem_asciidump() and show_alloc_mem_hexdump() functions
6-
- calloc, reallocarray, functions + simple tester
7-
- “Defragment” the freed memory.
3+
Custom `malloc` implementation built as a shared library.
84

9-
tester found: https://gitlab.com/mmeisson_42/correction-tests/malloc
5+
This project also includes a few extras: thread safety, logging, dump helpers, `calloc`, `reallocarray`, and a simple test program.
6+
7+
## Build
8+
9+
```bash
10+
make
11+
```
12+
13+
## Quick test
14+
15+
```bash
16+
make test
17+
```
18+
19+
## Use with a program
20+
21+
```bash
22+
LD_PRELOAD=./libft_malloc.so ls
23+
```
24+
25+
Reference tester:
26+
27+
- `https://gitlab.com/mmeisson_42/correction-tests/malloc`

0 commit comments

Comments
 (0)