You could use a typedef to define a callback and make clients supply it , something similar to qsort & but that 's so old-hat .
你可以用typedef来定义一个回调并让客户机来提供这个回调,这种做法有些类似qsort&但那样太老土了。