- Timestamp:
- Mar 10, 2024, 11:21:18 AM (7 months ago)
- Branches:
- master
- Children:
- 9398177
- Parents:
- b64d0f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/programs/lst-issues-intrusive.run.c
rb64d0f4 r5546f50b 21 21 22 22 struct req { 23 24 23 int pri, rqr; 24 LIST_ENTRY(req) x; 25 25 }; 26 26 … … 31 31 32 32 struct req 33 34 33 r1 = {1, 42}, 34 r2 = {2, 42}; 35 35 36 36 LIST_INSERT_HEAD( 37 37 &reqs, &r2, x); 38 38 LIST_INSERT_HEAD( 39 39 &reqs, &r1, x); 40 40 41 41 … … 51 51 struct req *cur; 52 52 LIST_FOREACH(cur, &reqs, x) 53 53 printf("{%d %d} ", cur->pri, cur->rqr); 54 54 printf("\n"); 55 55
Note: See TracChangeset
for help on using the changeset viewer.