ReturnValue for PopListPosition() + ChangeCurrentElement()
Posted: Thu May 16, 2019 9:49 am
Most commands that change the position pointer of a LinkedList return the pointer to the new element. Unfortunately this is not the case for:
- PopListPosition()
- ChangeCurrentElement()
Even if the new element is specified in the parameter here, a return value would be useful for a better code and for reasons of symmetry to other list commands. The parameter can e.g. come from a stack and should be stored in a global pointer after changing the position pointer.
- ClearList()
- FreeList()
- ResetList()