mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
4d907cecab
The signature for calloc is void *calloc(size_t num, size_t size), where num is the number of elements to allocate, and size is the size. Therefore, to allocate a single struct, we should pass 1 for num and the size of the struct as size. In some places, we use the opposite order, and we should flip it. |
||
---|---|---|
.. | ||
cmake | ||
include/common | ||
src | ||
CMakeLists.txt |