About 11,500 results
Open links in new tab
  1. Malloc tutorial - danluu.com

    Now that we've got malloc and free, we can write programs using our custom memory allocator! But before we can drop our allocator …

  2. c - malloc implementation? - Stack Overflow

    Mar 24, 2011 · This is not a great malloc() implementation. In fact, most malloc / free implementations will allocate a small header for …

  3. malloc - cppreference.com

    malloc is thread-safe: it behaves as though only accessing the memory locations visible through its argument, and not any static …

  4. Dynamic Memory Allocation in C - GeeksforGeeks

    Apr 9, 2026 · The malloc (), calloc (), realloc () and free () functions are the primary tools for dynamic memory management in C, …

  5. malloc (3) - Linux manual page - man7.org

    Normally, malloc () allocates memory from the heap, and adjusts the size of the heap as required, using sbrk (2). When allocating …

  6. Implementing malloc CS 351: Systems Programming Michael Saelee <[email protected]>

  7. RAGUL1902/Dynamic-Memory-Allocation-in-C - GitHub

    Dynamic memory allocation is the process of assigning the memory space during runtime of the program. This is implemented in C …

  8. Malloc is not magic — Implementing my own memory allocator

    Apr 7, 2025 · Malloc structure — Source: Primary First, the data structure itself. The real implementation in the standard C library is …

  9. CS 341 · Malloc

    This section introduces the implementation and conceptual details of building an allocator, or the actual code that implements malloc …

  10. Implementing malloc() and free() — first steps - DEV Community

    Jan 16, 2024 · The challenge allows us to allocate a large memory region with an existing malloc() function and manage it, but I …