Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mgraczyk
on April 7, 2014
|
parent
|
context
|
favorite
| on:
A Story Of realloc (And Laziness)
Not to mention that this realloc incorrectly frees the input ptr on failure. The standard says
"If the space cannot be allocated, the object [*ptr] shall remain unchanged."
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: