Skip to content
/ my-malloc Public

My own implementations of malloc, free, calloc, and realloc using the brk system call.

License

Notifications You must be signed in to change notification settings

c650/my-malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Malloc

This is an experiment. I set out to learn more about how memory management is accomplished on Linux systems. Specifically, I wanted to do it in C. I aim to mimic the bare-bones functionality of GLIBC's malloc.

Again, this is a learning experience -- and as of now this code shouldn't really be used or relied on.

valgrind shows no errors at this point (with what's done in main.c)


Usage

Please refer to the information in my-malloc.h. The comments in that file are where a new user should look if he/she intends to use this code. Disclaimer: as I am not a "pro" and this code is not technically "production," it is not recommended that this code is used in place of GLibC's malloc().


Notice

Anyone is free to use this code, but I am not liable for any of its shortcomings. See the LICENSE for more information regarding usage and rights.

About

My own implementations of malloc, free, calloc, and realloc using the brk system call.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published