[Gambas-devel] Sorting a String GB_ARRAY
Benoît Minisini
gambas at ...1...
Sun Nov 16 17:06:37 CET 2014
Le 15/11/2014 19:13, Tobias Boege a écrit :
> Hi,
>
> in a C component, how would I sort a GB_ARRAY of which I know it contains
> Strings? Is there some interface to get Array.Data so that I can qsort()
> with GB.CompVariant()? Would that work?
>
> Regards,
> Tobi
>
Strings can be sorted in a lot of ways. Anyway, you can move the
elements of a Gambas array freely, as long as you do not change
reference counts.
--
Benoît Minisini
More information about the Devel
mailing list