Skip to content

stp_number.dir@stp_number.h.dir@STP_Number_add

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

STP_Number_add

F+F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F+++F
  Function: STP_Number_add

  Summary:  Add two numbers together. Result stored in lhs.

  Args:     STP_Number* lhs
              .
            STP_Number* _rhs
              .

  Returns:  int
              1 if successful, 0 if not

  Requires: * lhs and rhs are not null

  Note:     1. carry is handled automatically

  Modifies: capacity, size and arr of lhs
F---F---F---F---F---F---F---F---F---F---F---F---F---F---F---F---F-F

Clone this wiki locally