Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The biggest advantages here are not having a single function, but instead:

1. Having a context.

2. Having free and realloc getting the old size. Not having the size passed is more or less consensually regarded as a mistake in the C stdlib.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: