On success the function returns a pointer to data at the end of the list. On failure the function returns NULL. See remarks.
Remarks
The list is not thread-safe.
If the last element stores a NULL pointer, the function returns NULL just like on failure. To avoid ambiguity set the last chsvlib error code to CHSVERROR_SUCCESS before calling the function. On failure the function would set the last chsvlib error code according to the failure.