list_next/list_prev needs a bit more detail
manpage - manual pages
The list_next() and list_prev() functions return the next or previous item in the list, relative to the named reference item which must be linked on the list.
It says nothing about returning NULL when reaching one or the other end of the list. Perhaps something like:
The list_next() and list_prev() functions return the next or previous item in the list, relative to the named reference item which must be linked on the list. If the named reference item is at the end (for list_next()) or beginning (for list_prev()) of the list, the function returns NULL.
Updated by Electric Monk 7 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 597b30361cb132283d94270df35d0536cf12895f Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2022-01-30T15:22:24.000Z 9855 list_next/list_prev needs a bit more detail Reviewed by: Richard Lowe <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>