Closed BloodyWulf closed 7 years ago
Hey there.
You shouldn't cast the result of malloc in C (in C++ you have to cast!). If you forget to include the cast can obfuscate warnings. If you forget to include the build-in malloc from the compiler will be used.
Do I cast the result of malloc?
Regards
Apparently there is more than one opinion on this. Nevertheless I understand the reason why one should not cast.
Hey there.
You shouldn't cast the result of malloc in C (in C++ you have to cast!). If you forget to include the cast can obfuscate warnings. If you forget to include the build-in malloc from the compiler will be used.
Do I cast the result of malloc?
Regards