Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
e4m2
5 days ago
|
parent
|
context
|
favorite
| on:
Growing Buffers to Avoid Copying Data
According to the standard `realloc(NULL, size)` should already behave like `malloc(size)`. You shouldn't need that special case unless you're working on a system with a very buggy/non-compliant libc.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: