<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63171>63171</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Add qsort_r/s to llvm-libc
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiJoules
</td>
</tr>
</table>
<pre>
It would be nice if these were shipped alongside qsort. Projects like boringssl which has a lot of different types of comparator functions could use this to avoid function type mismatches for comparator functions whose arguments aren't specifically `const void *`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskc-O2zwMxJ9GvhBryHIixwcf8uGDgfa0b1DoD2WxlS1XlDfI2xfxFu2lJwLEzHDAn2GmZUOcxPU_cf2_MUeNuUzv9DUfCbmx2T-nLxUe-UgeLMJGDoEC1IiM8MCCwJH2HT2YlLeFySP85FxqC-8lf0dXGRL9QLC50LYwJ3hEchGiYTCQcoUcwFMIWHCrUJ878mvl8rqbYmouEI7NVcobgzt7HIxQIzHUDOYjk_-jOO2wEq-muogMIZd_Jz1iZgRTlmPFrTKYgptQQwXe0VEgZ1J6gtDS5Y0rnFeEugst28ZPvR_70TQ4dfqmO325DLKJ0zj04-3qTafkVeqLDbcx6KD7HofO2l42NCmpeqnl0I2yk7fWXAc9jp2-SWvl4IO4SFwNpTalj7XNZWmI-cBJ993QNclYTHyyUiqRdUKpF7UyveRv9lhYXGQirvw3oFJNON29_8TyrQg1n587Pa-U5ihpirXuLPq7ULNQ80I1HrZ1eRVqfgl_j7f9k6lQ81mMhZrPbr8CAAD__7Rmxfk">