---
title: "Discussion on \"How to rewrite \"malloc\" from scratch ? (with C)\" | Hashnode"
description: "Discussion on \"How to rewrite \"malloc\" from scratch ? (with C)\". Learn to recode memory allocation functions such as \"malloc\", \"free\", \"realloc\", \"memcpy\", ...  without the standard library"
url: "https://hashnode.com/posts/how-to-rewrite-malloc-from-scratch-with-c/628a9df1aad1d35780a00345"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to rewrite "malloc" from scratch ? (with C)](https://antoninhrlt.hashnode.dev/how-to-rewrite-malloc-from-scratch-with-c?utm_source=hashnode&utm_medium=feed)

Learn to recode memory allocation functions such as "malloc", "free", "realloc", "memcpy", ... without the standard library

May 22, 2022 · 7 min read · antoninhrlt.hashnode.dev  
Updated Mar 2, 2025  
Read the article

-   [#c](https://hashnode.com/tag/c)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)
-   [#newbie](https://hashnode.com/tag/newbie)

## Written by

[Anтo](https://hashnode.com/@antoninhrlt)

@antoninhrlt · France

  
[View profile](https://hashnode.com/@antoninhrlt)

Mathematics and programming

## Responses 1

Markdown supported · ⌘↵ to post

[ino](https://hashnode.com/@ino)

[May 22, 2022](https://hashnode.com/posts/how-to-rewrite-malloc-from-scratch-with-c/628a9df1aad1d35780a00345/comment/628a9ee1aad1d35780a00351)

Awesome. I will be rewriting malloc today.

[Anтo](https://hashnode.com/@antoninhrlt)

[May 22, 2022](https://hashnode.com/posts/how-to-rewrite-malloc-from-scratch-with-c/628a9df1aad1d35780a00345/comment/628a9ee1aad1d35780a00351#reply-628aa049aad1d35780a00373)

Great !!!
