Hi All,
I'm fairly new to the C programming language but I know that it is not standardized in the same way as Java.
When performing a comparisson of the runtime of a algorithm, to keep the analysis fair, I need to call a method similar to Java's Array.sort(int []).
void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));
Seems to be my best bet but I was wondering how I could find out the backend implementation for the version of C that I'm compiling to.
How can I find out which implementation I am using? Does this depend on the Compiler or the includes? I am running I run Ubuntu and use the gcc compiler, all of my tools are obtained through the synaptic package manager or are installed by default.
I hope this question makes sense!
Kind regards,
Gavin