AnsweredAssumed Answered

Are there any risks to using stdlib qsort() on an MQX 4.2 Kinetis K60 system?

Question asked by dmitriyc on Nov 11, 2015
Latest reply on Nov 17, 2015 by Carlos_Musich

Hello,

 

I would like to sort an array of structs and the qsort() in stdlib.h looks like a good solution as opposed to rolling my own sort function. I don't need that much speed, so the generic standard function should be fine for this. Are there any dangers in doing this? For example, is the qsort() implemented as a recursive function, creating the need to be very careful with the task's stack size?

 

Has anyone else had experience using qsort in an MQX system?

Outcomes