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

What is the point of defining the function with two void* arguments if the cast will just take place anyway?


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/




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: