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

it should be memset(buffer,0,SIZE*sizeof(int))


Only if it's a buffer of ints. I had assumed it was buffer of unstructured memory, which would be chars and of 1 byte each.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: