Gang Of Coders
Home
About Us
Contact Us
All Malloc Solutions on Gang of Coders
Total of 56 Malloc Solutions
Do I cast the result of malloc?
C
Malloc
Casting
Difference between malloc and calloc?
C
Malloc
Calloc
What REALLY happens when you don't free after malloc before program termination?
C
Malloc
Free
In what cases do I use malloc and/or new?
C++
Memory Management
Malloc
New Operator
Why is the use of alloca() not considered good practice?
C
Stack
Malloc
Allocation
Alloca
How do malloc() and free() work?
C++
C
Memory Management
Malloc
Free
Why malloc+memset is slower than calloc?
C
Malloc
What is a Memory Heap?
Malloc
Setting variable to NULL after free
C
Coding Style
Malloc
Free
Heap Memory
Incompatible implicit declaration of built-in function ‘malloc’
C
Struct
Malloc
Why does "The C Programming Language" book say I must cast malloc?
C
Casting
Malloc
Kernighan and-Ritchie
What's the point of malloc(0)?
C
Malloc
How is malloc() implemented internally?
C
Memory
Malloc
System Calls
Sbrk
Freaky way of allocating two-dimensional array?
C
Arrays
Multidimensional Array
Malloc
Allocation
Why do I get a warning every time I use malloc?
C
Gcc
Malloc
Warnings
Sizeof
Malloc vs new -- different padding
C++
Malloc
New Operator
Padding
Why do I get a C malloc assertion failure?
C
Gcc
Malloc
Assertion
Is using malloc for int undefined behavior until C++20
C++
Malloc
Undefined Behavior
C++20
Why does `free` in C not take the number of bytes to be freed?
C
Memory Management
Malloc
Free
When and why to use malloc?
C
Malloc
Dynamic Memory-Allocation
How does jemalloc work? What are the benefits?
Firefox
Malloc
Why does malloc initialize the values to 0 in gcc?
C
Linux
Gcc
Malloc
How to find the cause of a malloc "double free" error?
Iphone
Objective C
Memory Management
Malloc
Autorelease
C Programming: malloc() inside another function
C
Function
Pointers
Malloc
Is malloc thread-safe?
C
Multithreading
Thread Safety
Malloc
Does malloc lazily create the backing pages for an allocation on Linux (and other platforms)?
Linux
Malloc
Difference between array type and array allocated with malloc
C
Arrays
Malloc
Variable Length-Array
C - freeing structs
C
Struct
Malloc
What are the differences between (and reasons to choose) tcmalloc/jemalloc and memory pools?
C
Linux
Memory
Malloc
Tcmalloc
invalid conversion from `void*' to `char*' when using malloc?
C++
G++
Malloc
How can I get the size of an array from a pointer in C?
C
Memory Management
Pointers
Malloc
Using malloc for allocation of multi-dimensional arrays with different row lengths
C
Arrays
Malloc
How do free and malloc work in C?
C
Memory
Free
Malloc
Free memory allocated in a different function?
C
Pointers
Memory Management
Malloc
Free
malloc() vs. HeapAlloc()
C++
Winapi
Malloc
What happens to memory after '\0' in a C string?
C
String
Pointers
Malloc
C Strings
Will malloc implementations return free-ed memory back to the system?
Free
Malloc
Glibc
Mmap
Tcmalloc
Why does the speed of memcpy() drop dramatically every 4KB?
Performance
Memory
Malloc
Memcpy
Cpu Cache
In C, how would I choose whether to return a struct or a pointer to a struct?
C
Pointers
Struct
Malloc
Xcode Guard Malloc and on Device Debugging: 'libgmalloc.dylib' image not found
Xcode
Malloc
Maximum memory which malloc can allocate
C
Memory Management
Operating System
Malloc
Cpu Architecture
Dynamically create an array of strings with malloc
C
Arrays
Malloc
What is the difference between "new" and "malloc" and "calloc" in C++?
C++
Memory Management
Malloc
Heap Memory
What does malloc(0) return?
C
Linux
Pointers
Malloc
Realloc
C API design: Who should allocate?
C
Api
Memory Management
Malloc
How does malloc work in a multithreaded environment?
C
Linux
Gcc
Malloc
X86 64
How to dynamically allocate memory space for a string and get that string from user?
C
String
Memory Management
Malloc
Dynamic
Why is it safer to use sizeof(*pointer) in malloc
C
Malloc
Time complexity of memory allocation
Optimization
Memory Management
Malloc
Time Complexity
zero size malloc
C
Malloc
malloc vs mmap in C
C
Malloc
Mmap
Use of cudamalloc(). Why the double pointer?
C
Cuda
Malloc
Is there a way to mark a chunk of allocated memory readonly?
C++
C
Memory Management
Malloc
Heap Corruption
What does the first "c" stand for in "calloc"?
C
Malloc
Libc
Calloc
C Standard-Library
Memory Allocation/Deallocation Bottleneck?
Performance
Optimization
Memory Management
Garbage Collection
Malloc
difference between <stdlib.h> and <malloc.h>
C
Gcc
Malloc