| 1 | #include <config.h> |
|---|---|
| 2 | #include "lst.h" |
| 3 | |
| 4 | void *lstLast( HLST hLst ) |
| 5 | { |
| 6 | if ( !hLst ) |
| 7 | return NULL; |
| 8 | |
| 9 | if ( !hLst->hLast ) |
| 10 | return NULL; |
| 11 | |
| 12 | if ( !_lstVisible( hLst->hLast ) ) |
| 13 | hLst->hCurrent = _lstPrevValidItem( hLst, hLst->hLast ); |
| 14 | else |
| 15 | hLst->hCurrent = hLst->hLast; |
| 16 | |
| 17 | return hLst->hCurrent; |
| 18 | } |
| 19 | |
| 20 | |
| 21 |