[riot-notifications] [RIOT-OS/RIOT] core/clist: add clist_count() (#11251)
notifications at github.com
Sat Mar 23 23:50:45 CET 2019
### Contribution description
Using `clistls`, I was missing the possibility to easily count the number of elements in a given list. This PR adds that functionality.
As this is an inline function, it should not have any effect on any existing code...
### Testing procedure
run the provided unittests (`unittests/tests-core`), these should prove the functions correctness.
### Issues/PRs references
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* core/clist: add clist_count()
* unittests/core: added tests for clist_count
-- File Changes --
M core/include/clist.h (22)
M tests/unittests/tests-core/tests-core-clist.c (18)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications