在普通C中,指向void的指针作为泛型函数的参数非常有用,例如泛型快速排序或泛型交换等等,如下所示:
size_t generic_partition(void *v, size_t nelems, size_t size, compare_function comp) // for brevity we'll be using the right-most 'element' for the
// location of the pivot storage. a better choice wou