Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in malloc

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?

Can I 'reserve' memory somehow, so as to ensure malloc doesn't fail for this reason

c memory-management malloc

Malloc implementation with C

c malloc