Question
malloc(1)
I'm using cJSON on a STM32F401 and I'm a bit worried with possible problems regarding with memory allocation.
If a call malloc(1) (so asking the heap for 1 byte only) how many bytes are really used on the Heap?
I would assume correct answer with be 16 bytes used.
if I call malloc(5) 16 bytes are used.
if I call malloc(16) 16 bytes are used.
if I call malloc(17) 32 bytes are used.
If somebody knows the right answer please let me know.
I cannot enter malloc on STM32CudeIDE since it seems to be built into a library...
thanks,
Eduardo
