Re: qsort needs one more argument



Google for "qsort_r" (passing in another pointer which is passed on
the compar function) and "qsort_b" (passing a "block" instead of a
function pointer, using a language extension present in some versions
of gcc and clang compilers).
.



Relevant Pages

  • Re: [PATCH] Linux Markers 0.4 (+dynamic probe loader) for 2.6.17
    ... This will need to be "asm volatile()" so that gcc doesn't get rid of it ... +#define MARK_JUMP_CALL(name, format, args...) \ ... because the function pointer is always pointing to a valid function: ...
    (Linux-Kernel)
  • Re: size of a function
    ... > gcc without --pedantic allows it, but the size it returns is 1 ... > use a stricter compiler, ... you *can* use sizeof on a function pointer, ... Prev by Date: ...
    (comp.lang.c)
  • Re: openvpn dies in recent -CURRENT
    ... Basically everything that depends on openssl is broken. ... This is because gcc ... disallows function pointer conversion. ...
    (freebsd-current)
  • Re: Segmentation Fault
    ... >> Isn't calling a function dereferencing a function pointer? ... >> This is a genuine question, I am not so sure any more. ... gcc does NOT optimize this one. ...
    (comp.lang.c)
  • Re: Why no generic function pointers?
    ... There is a common compiler extension (supported by GCC and lccwin32 for example) ... to a void pointer and void pointers to any kind of function pointer. ... "irregular" to me that you can't cast function pointers to void. ...
    (comp.lang.c)