Oskar Liljeblad wrote:
> >   extern void my_sort (void *, size_t, size_t,
> >                        int (*) (const void *, const void *));
>
> Sure, but assume you're passing strcmp for the comparison function,
> wouldn't you want to cast it to avoid the warning?

Yes, and there's nothing wrong with

   my_sort (..., ..., ..., (int (*) (const void *, const void *)) strcmp);

Everyone who likes can define his own typedef for this type. They will
not collide.

Bruno



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to