News for hackers. Stuff that matters.
Re:C will never stop you from making mistakes by _wldu on Monday August 10, 2020 @10:00AM (#24109297)
I would not cringe at this. It's just his preference. They have the exact same meaning. Other than personally preferring one way or the other for readability, there is no difference.
Re:C will never stop you from making mistakes by lokedhs on Monday August 10, 2020 @10:24AM (#24109573)
The problem is that if they forget to include the correct header file that declares malloc, then the cast will hide any warnings.

If the cast is not there, it will tell you that there is a type mismatch.

Re:C will never stop you from making mistakes by rootbear on Monday August 10, 2020 @10:12AM (#24109430)
I would assert that usability and clarity are very much a difference.