Changeset 1b20da0 in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
rdf6ded8 r1b20da0 66 66 67 67 /** Initializer for statically allocated list. 68 * 68 * 69 69 * @code 70 70 * struct named_list { 71 71 * const char *name; 72 72 * list_t list; 73 * } var = { 74 * .name = "default name", 75 * .list = LIST_INITIALIZER(name_list.list) 73 * } var = { 74 * .name = "default name", 75 * .list = LIST_INITIALIZER(name_list.list) 76 76 * }; 77 77 * @endcode … … 111 111 * link_t item_link; 112 112 * } item_t; 113 * 113 * 114 114 * //.. 115 * 115 * 116 116 * // Print each list element's value and remove the element from the list. 117 117 * list_foreach_safe(mylist, cur_link, next_link) { … … 121 121 * } 122 122 * @endcode 123 * 123 * 124 124 * @param list List to traverse. 125 125 * @param iterator Iterator to the current element of the list.
Note:
See TracChangeset
for help on using the changeset viewer.