...
Do not make assumptions about the result of malloc(0)
Use the sizeof operator correctly
References
- Seacord 05 Chapter 4 Dynamic Memory Management
...
Do not make assumptions about the result of malloc(0)
Use the sizeof operator correctly