Skip to content

stp_number.dir@_utils.h.dir@_STP_Number_ensure_capacity

Andy Zhang edited this page Aug 7, 2026 · 2 revisions

_STP_Number_ensure_capacity

F+F+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  Function: _STP_Number_ensure_capacity

  Summary:  Ensure the number has capacity of at least min_capacity.

  Args:     STP_Number* num
              .
            uint64_t min_capacity
              .

  Returns:  int
              1 if resize is successful

  Modifies: capacity and arr of num.

  Note:     1. newly allocated memory is automatically zero-filled.
-----------------------------------------------------------------F-F

Clone this wiki locally