News for hackers. Stuff that matters.
Re:Some simple tricks in C/C++ by eqvinox on Wednesday May 06, 2020 @01:16PM (#23093662)
If you're #defining a macro, the cast is sensible because the macro did the allocation for that particular type => having the macro result cast protects against/warns when mistakenly assigning it to a pointer of different type.

There are no comments on this comment yet.