chsvlib
chsv helper source code

◆ ListIterPrev()

EXTERN_C HCHSVLISTITERATOR Chusov::ListIterPrev ( HCHSVLISTITERATOR  hListIterator)
noexcept

Returns a handle to the iterator bound with the element located before the element bound with the specified iterator.

Parameters
hListIteratoris a handle to the element located after the required one.
Returns
On success the function returns a handle to the iterator bound with the element located before the element of the specified iterator.
If the hListIterator accords to the first element of the list the function returns LIST_ITERATOR_DOES_NOT_EXIST (NULL).
If any other error occurs the function returns LIST_ITERATOR_ERROR ((HCHSVLISTITERATOR) -1).
Remarks
The list is not thread-safe.
The returned handle to the iterator does not need to be closed.
Declared in chsvlist.h.
See also
ListBegin();
ListEnd();
ListIterNext().