# MATH_QSortStackSize

## C Specification

      #include <nitro/math/qsort.h>

      static inline u32 MATH_QSortStackSize(u32 num);

## Arguments

num | Number of elements in the array to sort.

## Return Values

Returns the size of the work buffer required for sorting with `MATH_QSort`.

## Description

This function returns the maximum size of the work buffer needed for sorting with `MATH_QSort`. If no work buffer is passed as an argument to `MATH_QSort`, a work area of this size will be allocated from the stack.

## See Also

MATH_QSort

## Revision History

04/12/2005 Initial version.