S
subramanian100in
What is meant by stable qsort ?
[email protected] said:What is meant by stable qsort ?
What is meant by stable qsort ?
CBFalconer said:If qsort is implemented via quicksort, it is not stable. Stable
means that equal keys appear in the output in the order in which
they appeared in the input. A stable O(nLOGn) sort is mergesort.
Keith said:.... snip ...
(Hmm, I wonder why it's called compar() rather than compare().
Historical reasons, I suppose.)
CBFalconer said:I suspect the famous 6 char external linkage name limit.
(Hmm, I wonder why it's called compar() rather than compare().
Historical reasons, I suppose.)
Keith Thompson said:Sure, but parameter names don't have external linkage.
Richard said:Keith Thompson said:Sure, but parameter names don't have external linkage.
True, but humans are habitual creatures. The habit was to make all
function names in the Standard 6 chars or less; [ ... ]
[/QUOTE]Sure, but parameter names don't have external linkage.
True, but humans are habitual creatures. The habit was to make all
function names in the Standard 6 chars or less; that this wasn't
necessary in the case of a function pointer function parameter did not
manage to break the habit.
Does the use of the name "compar" in the standard have any normative
effect at all?
True, but humans are habitual creatures. The habit was to make all
function names in the Standard 6 chars or less; that this wasn't
necessary in the case of a function pointer function parameter did not
manage to break the habit.
[/QUOTE]I suspect the famous 6 char external linkage name limit.
Sure, but parameter names don't have external linkage.
True, but humans are habitual creatures. The habit was to make all
function names in the Standard 6 chars or less; that this wasn't
necessary in the case of a function pointer function parameter did not
manage to break the habit.
What is meant by stable qsort ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.