3 ms·
This person is not up to date in following the ISO C standard. There is now a variant of free which takes a size: free_sized, introduced in the 2023 draft. Th
by kazinator 2y ago
This person is not up to date in following the ISO C standard.
There is now a variant of free which takes a size: free_sized, introduced in the 2023 draft.
There is aligned_alloc, evidently since C11.
The article should be called: ANSI C89 memory allocation sucks, and I'm forever upset.
- orf 2y ago> introduced in the 2023 draft The article is from 2022 > There is aligned_alloc, evidently since C11. The article mentions this > The article should be called: ANSI C89 memory allocation sucks, and I'm forever upset. And your comment should be called: I skipped reading the article, and I decided to comment.
- eesmith 2y agoWhich ISO C standard is this? https://news.ycombinator.com/item?id=40969452 https://news.ycombinator.com/item?id=40969452 says ISO C23 is cancelled.