Changeset d34657e in mainline for src/lib/list.c
- Timestamp:
- 2005-05-11T17:00:13Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27dc170
- Parents:
- 724b58a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lib/list.c
r724b58a rd34657e 29 29 #include <list.h> 30 30 31 32 /** Check for membership 33 * 34 * Check whether link is contained in the list head. 35 * The membership is defined as pointer equivalence. 36 * 37 * @param link Item to look for. 38 * @param head List to look in. 39 * 40 * @return 1 if link is contained in head, 0 otherwise. 41 * 42 */ 31 43 int list_member(link_t *link, link_t *head) 32 44 { … … 45 57 } 46 58 59 60 /** Concatenate two lists 61 * 62 * Concatenate lists head1 and head2, producing a single 63 * list head1 containing items from both (in head1, head2 64 * order) and empty list head2. 65 * 66 * @param head1 First list and concatenated output 67 * @param head2 Second list and empty output. 68 * 69 */ 47 70 void list_concat(link_t *head1, link_t *head2) 48 71 {
Note:
See TracChangeset
for help on using the changeset viewer.