runic_obj_t runic_node_left(runic_obj_t ro);¶
The above function signature outlines the operation regarding the access of the left child of a NODE.
Arguments:¶
ro – Arunic_obj_tof typeNODEthat was returned as a result of a successful runic_alloc, runic_root, node_left or node_right operation. Meaning, this object will have an initializedbasepointer and anoffsetgreater than or equal toDEFAULT_ROOTas defined in dependencies. Using an uninitializedrois an invalid operation and the program will likely return an invalidrunic_obj_tas described inrunic_root().
Returns:¶
On a successful operation, this function will return the child runic_obj_t from the object ro, on its left subtree, if any exist. If none exist, it will print a warning to console, return a runic_obj_t with a NULL pointer and an offset of 0 (returning an invalid runic_obj_t). If an invalid runic_obj_t is supplied in the argument, an invalid runic_obj_t is returned.