Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (G-N)
Guardian Programming Reference Summary for pTAL and TAL522631-001
6-11
HEAPSORT
Sorts an array of equal-sized elements in place.
HEAPSORTX_
Sorts an array of equal-sized elements in place.
CALL HEAPSORT ( array
,num-elements
,size-of-element
,compare-proc );
array, INT:ref:* input, output
num-elements, INT:value input
size-of-element, INT:value input
compare-proc, INT PROC input
error := HEAPSORTX_ ( array
,num-elements
,size-of-element
,compare-proc
,[ pointer-array ] );
error, INT returned value
0 Array has been successfully sorted.
29 Required parameter is missing.
590 Invalid parameter supplied.
632 Insufficient stack space for temporary variable.
array, INT .EXT:ref:* input, output
num-elements, INT(32):value input
size-of-element, INT:value input
compare-proc, INT PROC input
pointer-array, INT(32) .EXT:ref:* input