Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
_RPM
· 11y ago · 0 comments
What is the point of defining the function with two void* arguments if the cast will just take place anyway?
Comments
[–]
huu
11y ago
The signature of greater is relevant because it has to conform to the interface for qsort. See the final argument of the interface here:
http://www.cplusplus.com/reference/cstdlib/qsort/