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

The implementation of malloc in K&R is about 20 lines...


It's closer to 50 lines if you don't exclude the morecore helper, and that's using the pretty opaque, outdated and golfy style of K&R itself.


Googled it and found this:

https://stackoverflow.com/questions/13159564/explain-this-im...

Looks like quite a bit more than 20 lines.




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

Search: