I'm trying to write some macros that work in nostd environment as well as in std environment. In order to do so I have this kind of code in proc macro ...
I'm trying to write some macros that work in nostd environment as well as in std environment. In order to do so I have this kind of code in proc macro ...
I read data from a file that I want to fit into a structure. This structure contains an array of variable size. So I am using realloc to fill it on th ...
I have an array structs that hold char names. I want to sort them alphabetically using qsort however I keep getting an error message saying "initializ ...
I have an array of structs that I'm adding entries into These are the names in the file: Stolen by the Fae, Eternal Isolation, Corpse Knight, Orzho ...
I am porting iOS opengl games to metal Use metalangle https://github.com/kakashidinho/metalangle I use pre-compiled dynamic library Return nil when ...
How can I work with the structure if i pass structure like parameter function ** ? ...
I wrote a c++ program but I am getting an error. I am not understanding the reason why I am getting the error. Please help me with how to fix this. T ...
So I have a two dimensional dynamic array and I have to resize it. After I resize it the compiler says that it can't access the memory trough a format ...
I'm developing a Linux kernel module that allocates more than one buffer per char device and then the user-space application maps those buffers to the ...
Questions Does the "memory storage array" allocbuf[10] save everything back to back. For example allocbuf[10] is full with {F, i, r, s, t, \0, S, ...
Valgrind says that 42 718 bytes were allocated, however, when I see how many times the reallocation procces is called, it's 3 or 6 times and variables ...
I use this program to store a mpz value but when I add a 0 ( 400000000000000000000000000000000000000 instead of 40000000000000000000000000000000000000 ...
Allocations : Deallocations : I run the code above(malloc + free are showed) and then checked memory-leak with Valgrind and got this output : ...
I am using the XDK Bosch Sensor for a project which is programmed in C. The idea is that the XDK should be able to connect to another network. SSID an ...
in the above code allocp is pointer which is assigned with allocbuff which is the starting element address of allocbuff but why in comments it has b ...
I am trying to convert this into swift. Facing issue at memory allocation logic How to write this in swift? ...
My legacy C++ codebase is failing in a multithreaded execution scenario when two threads are concurrently tries to allocate memory for STL vector. The ...
My call stack shows the following: Does that mean allocation failing means too much memory has been occupied? How can I check/monitor memory usage ...
What is difference between Dynamic memory allocation and Static memory Allocation? I don't understand this code: What is the difference between th ...
When I ran my app, it was about 25mb. However, memory increased up to 80mb when moved another activity. The xml being used by activity is below Al ...