Posts: 1,058
Threads: 367
Joined: Oct 2007
I would appreciate it if you could give an example of calling q_sort callback with an int type parameter equal to 1.
This is my approach with str :
Function
tempf01
lpstr pa
pa="1"
q_sort &a[0] a.len sizeof(lpstr) fa pa
.......................................
;Callback function fa
function[c] $param $&s1 $&s2
out val(param)
Posts: 12,072
Threads: 140
Joined: Dec 2002
q_sort ... +1
...
function[c]# k ...
+ is a "type cast" operator
or
int k=1
q_sort ... &k
...
function[c]# int&k ...
then callback function can change k value
Posts: 1,058
Threads: 367
Joined: Oct 2007