[riot-notifications] [RIOT-OS/RIOT] core: add clist_is_empty() (#16292)

benpicco notifications at github.com
Thu Apr 8 16:16:19 CEST 2021


@benpicco commented on this pull request.



> @@ -102,6 +104,20 @@ extern "C" {
  */
 typedef list_node_t clist_node_t;
 
+/**
+ * @brief Checks if *list is empty
+ *
+ * @note Complexity: O(1)
+ *
+ * @param[in]   list        Pointer to clist
+ *
+ * @returns     true if list has any elements, false if not

Just squash directly 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16292#discussion_r609749104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210408/a9f9a8fb/attachment.htm>


More information about the notifications mailing list