4 ms·
> especially when using function-pointer-based APIs like qsort Well, the function should be called somewhere, even if it's ignored when null. I can't think of
by commandlinefan 5y ago
> especially when using function-pointer-based APIs like qsort
Well, the function should be called somewhere, even if it's ignored when null. I can't think of a legitimate case for an unused parameter - it might be #ifdef-ed out in some cases, but it should still be referenced somewhere.
- coldpie 5y agoFor qsort, sure, but it's pretty common to not need the void* argument for the start_routine you pass to pthread_create, to come up with one example.