Function-types: compatability, and typedefs

Miles Bader bader+ at andrew.cmu.edu
Sat Sep 2 03:06:16 AEST 1989


ok at cs.mu.oz.au (Richard O'Keefe) writes:
> and pass that as the fourth argument.  I can't think of any case where it
> would make sense to pass strcmp to qsort().

When you have an array of fixed sized buffers (strings),
e.g. char strings[20][30].

It's not particularly *efficient* to do this, but it is correct...



More information about the Comp.lang.c mailing list