statlist: statlist_last()
authorMarko Kreen <markokr@gmail.com>
Wed, 26 Jan 2011 12:04:16 +0000 (14:04 +0200)
committerMarko Kreen <markokr@gmail.com>
Wed, 26 Jan 2011 12:04:16 +0000 (14:04 +0200)
usual/statlist.h

index 070cd7f9559ed2290b7209c1a98df97456239c29..ff41dbce336765e67c4a0c1adedd53dee3a0a369 100644 (file)
@@ -110,6 +110,12 @@ static inline struct List *statlist_first(const struct StatList *list)
        return list_first(&list->head);
 }
 
+/** Return last element */
+static inline struct List *statlist_last(const struct StatList *list)
+{
+       return list_last(&list->head);
+}
+
 /** Is list empty */
 static inline bool statlist_empty(const struct StatList *list)
 {