Quote:
Return Value
1 if removal succeeded and there was another key. 0 if the current node was not contained in the previous node, or no previous node exists. -1 if removal succeeded and there were no more keys, thus the state is as if KvGoBack() was called.
|
I'm confused about the 0's meaning: When does is get returned? I assume -1 is when the subsection you were in becomes empty after removing the key and it calls KvGoBack() for you (you end up on the parent key), 1 is when you remove a key and there is something else in the section you're in (you end up on the next key after the one you deleted), but 0? When does it get returned?
//EDIT//
I found out the function returns 0 when you delete the topmost section/key.