logoalt Hacker News

f1shy12/09/20251 replyview on HN

I also personally find totally confusing leaving the * in the middle of nowhere, like flapping in the breeze.


Replies

unwind12/09/2025

Where would you put it? The const of the pointer is not the main point, it's just extra clarity that the allocated pointer is not as easily overwritten which would leak the memory.

show 1 reply