Hacker News new | past | comments | ask | show | jobs | submit login

I hereby propose a change to memcpy to include a maxbytes parameter and an optional assert() if len exceeds it.

Might turn up a few interesting things.




memcpy's third argument is the maximum (additionally, the exact) number of bytes it will copy.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: