Hacker News

Favorites Setup
Comment by nofriend | original | C for Rust programmers
[−]nofriend · 2026-10-10 Sat 23:44 UTC · link
> nobody in decades thought to make this information accessible to the programmer!

Obviously this is untrue. Under GNU we have malloc_usable_size(3). What's true is that it never became standardized, but standards for just about anything in C are very bare, so it's not too surprising.