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

What's with all the unused function parameters? Shouldn't that be an edge case?



Just about every callback interface takes a function pointer where the function expects a void * argument. Half the time it's not needed.


If the void * is the last parameter, just leave it off your implementation of the callback function.




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: