← Back to team overview

kicad-developers team mailing list archive

Re: Where comes from sort function?

 

On Mon, 26 Apr 2010, Alain Portal wrote:

Hi,

Can somebody tell me where comes from the sort fonction used at line 314 in pcbnew/dialog_design_rules.cpp?

From ANSI C :D:D IIRC it's declared in stdlib.h

Of course, it would be better style to apply the C++ sort from
<algorithms> to a C++ container, but if you have an array and you
survive the required casting and function definition that's will work,
too...

--
Lorenzo Marcantonio
Logos Srl



Follow ups

References