Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wvenable
on May 26, 2010
|
parent
|
context
|
favorite
| on:
Android Project Changeset 4f8b683: libc/memset.c
What's with all the unused function parameters? Shouldn't that be an edge case?
tedunangst
on May 26, 2010
[–]
Just about every callback interface takes a function pointer where the function expects a void * argument. Half the time it's not needed.
kelnos
on May 26, 2010
|
parent
[–]
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: