Changeset 45671f48 in mainline for src/lib/list.c
- Timestamp:
- 2005-05-11T19:14:15Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02a99d2
- Parents:
- d7568a9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lib/list.c
rd7568a9f r45671f48 38 38 * @param head List to look in. 39 39 * 40 * @return 1 if link is contained in head, 0otherwise.40 * @return true if link is contained in head, false otherwise. 41 41 * 42 42 */ 43 int list_member(link_t *link,link_t *head)43 bool list_member(const link_t *link, const link_t *head) 44 44 { 45 int found = 0;45 bool found = false; 46 46 link_t *hlp = head->next; 47 47 48 48 while (hlp != head) { 49 49 if (hlp == link) { 50 found = 1;50 found = true; 51 51 break; 52 52 }
Note:
See TracChangeset
for help on using the changeset viewer.