Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in malloc

Disable default malloc with arm-none-eabi on cortex m3 (bare metal)

c malloc bare-metal

Difference in creating a struct using malloc and without malloc

c struct malloc

Where does malloc() allocate memory? Is it the data section or the heap section of the virtual address space of the process?

sizeof('\0') null terminator as literal is four bytes but how come in string of characters it takes only one byte?

Reassigning null pointers

How to create a new char* in standard C

c memory malloc arrays strlen

malloc in Release vs Debug (VC 2012)

c malloc

C++ dynamic allocation program crashes

c++ malloc

Segmentation fault when replacing `malloc`, `calloc`, `realloc` and `free` via `LD_PRELOAD`

c linux malloc x86-64 ld-preload

C Not sure what to free properly

c memory linked-list malloc

Pointer to pointer in parameter in C

Initializing a pointer at declaration time in a C struct

c pointers struct malloc

How to avoid memory leak when passing function-returned pointer as input to other function?

Array of pointers to structs - why is malloc() required, why is direct field copies required?

c pointers struct malloc

How to create a dynamic array of strings in C using malloc

c arrays malloc realloc

Is it safe to call free on std::string_view::data?

malloc(sizeof(s)) allocates less memory than expected?

c malloc

What does allocating memory of size char * do?

Why does malloc ask for unreasonable amout of memory from sbrk. what can prevent it?