LinkedList_8c.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>MQTT C Client Libraries Internals: LinkedList.c File Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">MQTT C Client Libraries Internals
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. </div><!-- top -->
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">LinkedList.c File Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>functions which apply to linked list structures.
  70. <a href="#details">More...</a></p>
  71. <div class="textblock"><code>#include &quot;LinkedList.h&quot;</code><br />
  72. <code>#include &lt;stdlib.h&gt;</code><br />
  73. <code>#include &lt;string.h&gt;</code><br />
  74. <code>#include &quot;Heap.h&quot;</code><br />
  75. </div><div class="textblock"><div class="dynheader">
  76. Include dependency graph for LinkedList.c:</div>
  77. <div class="dyncontent">
  78. <div class="center"><img src="LinkedList_8c__incl.png" border="0" usemap="#LinkedList_8c" alt=""/></div>
  79. <map name="LinkedList_8c" id="LinkedList_8c">
  80. <area shape="rect" title="functions which apply to linked list structures." alt="" coords="34,5,127,32"/>
  81. <area shape="rect" title=" " alt="" coords="5,80,68,107"/>
  82. <area shape="rect" title=" " alt="" coords="93,80,157,107"/>
  83. </map>
  84. </div>
  85. </div><table class="memberdecls">
  86. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  87. Functions</h2></td></tr>
  88. <tr class="memitem:ab82181e0c1d96954f82dee67cee41296"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296">ListUnlink</a> (<a class="el" href="structList.html">List</a> *aList, void *content, int(*callback)(void *, void *), int freeContent)</td></tr>
  89. <tr class="memdesc:ab82181e0c1d96954f82dee67cee41296"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and optionally frees an element in a list by comparing the content. <a href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296">More...</a><br /></td></tr>
  90. <tr class="separator:ab82181e0c1d96954f82dee67cee41296"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:aa254fb1eab8e30d0e03859b333dc22ed"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#aa254fb1eab8e30d0e03859b333dc22ed">ListZero</a> (<a class="el" href="structList.html">List</a> *newl)</td></tr>
  92. <tr class="memdesc:aa254fb1eab8e30d0e03859b333dc22ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a list structure to empty - all null values. <a href="LinkedList_8c.html#aa254fb1eab8e30d0e03859b333dc22ed">More...</a><br /></td></tr>
  93. <tr class="separator:aa254fb1eab8e30d0e03859b333dc22ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a27e2cccab9752618ead91eafbe2a9a46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structList.html">List</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a27e2cccab9752618ead91eafbe2a9a46">ListInitialize</a> (void)</td></tr>
  95. <tr class="memdesc:a27e2cccab9752618ead91eafbe2a9a46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates and initializes a new list structure. <a href="LinkedList_8c.html#a27e2cccab9752618ead91eafbe2a9a46">More...</a><br /></td></tr>
  96. <tr class="separator:a27e2cccab9752618ead91eafbe2a9a46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a321a3598d6979c7af3f995b77ea2cec3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a321a3598d6979c7af3f995b77ea2cec3">ListAppendNoMalloc</a> (<a class="el" href="structList.html">List</a> *aList, void *content, <a class="el" href="structListElementStruct.html">ListElement</a> *newel, size_t size)</td></tr>
  98. <tr class="memdesc:a321a3598d6979c7af3f995b77ea2cec3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append an already allocated ListElement and content to a list. <a href="LinkedList_8c.html#a321a3598d6979c7af3f995b77ea2cec3">More...</a><br /></td></tr>
  99. <tr class="separator:a321a3598d6979c7af3f995b77ea2cec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:abc7a28449893dfa775c2f709349968b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#abc7a28449893dfa775c2f709349968b4">ListAppend</a> (<a class="el" href="structList.html">List</a> *aList, void *content, size_t size)</td></tr>
  101. <tr class="memdesc:abc7a28449893dfa775c2f709349968b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Append an item to a list. <a href="LinkedList_8c.html#abc7a28449893dfa775c2f709349968b4">More...</a><br /></td></tr>
  102. <tr class="separator:abc7a28449893dfa775c2f709349968b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:aabca387fa4b86475bc9e4da40c3977fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#aabca387fa4b86475bc9e4da40c3977fc">ListInsert</a> (<a class="el" href="structList.html">List</a> *aList, void *content, size_t size, <a class="el" href="structListElementStruct.html">ListElement</a> *index)</td></tr>
  104. <tr class="memdesc:aabca387fa4b86475bc9e4da40c3977fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert an item to a list at a specific position. <a href="LinkedList_8c.html#aabca387fa4b86475bc9e4da40c3977fc">More...</a><br /></td></tr>
  105. <tr class="separator:aabca387fa4b86475bc9e4da40c3977fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:ad2879a10b723fb7c1f95c0ad0abdbc50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#ad2879a10b723fb7c1f95c0ad0abdbc50">ListFind</a> (<a class="el" href="structList.html">List</a> *aList, void *content)</td></tr>
  107. <tr class="memdesc:ad2879a10b723fb7c1f95c0ad0abdbc50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds an element in a list by comparing the content pointers, rather than the contents. <a href="LinkedList_8c.html#ad2879a10b723fb7c1f95c0ad0abdbc50">More...</a><br /></td></tr>
  108. <tr class="separator:ad2879a10b723fb7c1f95c0ad0abdbc50"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:acad319e9ce896ff1fff30ddbeb06d22d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d">ListFindItem</a> (<a class="el" href="structList.html">List</a> *aList, void *content, int(*callback)(void *, void *))</td></tr>
  110. <tr class="memdesc:acad319e9ce896ff1fff30ddbeb06d22d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds an element in a list by comparing the content or pointer to the content. <a href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d">More...</a><br /></td></tr>
  111. <tr class="separator:acad319e9ce896ff1fff30ddbeb06d22d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ab2bcc1897abf1d98490ea81c474dba52"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#ab2bcc1897abf1d98490ea81c474dba52">ListDetach</a> (<a class="el" href="structList.html">List</a> *aList, void *content)</td></tr>
  113. <tr class="memdesc:ab2bcc1897abf1d98490ea81c474dba52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes but does not free an item in a list by comparing the pointer to the content. <a href="LinkedList_8c.html#ab2bcc1897abf1d98490ea81c474dba52">More...</a><br /></td></tr>
  114. <tr class="separator:ab2bcc1897abf1d98490ea81c474dba52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a8430370b2b15c56ec95bb8e7e36753a5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a8430370b2b15c56ec95bb8e7e36753a5">ListRemove</a> (<a class="el" href="structList.html">List</a> *aList, void *content)</td></tr>
  116. <tr class="memdesc:a8430370b2b15c56ec95bb8e7e36753a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees an item in a list by comparing the pointer to the content. <a href="LinkedList_8c.html#a8430370b2b15c56ec95bb8e7e36753a5">More...</a><br /></td></tr>
  117. <tr class="separator:a8430370b2b15c56ec95bb8e7e36753a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:ab0f3597d344e09ad6636c8bc72029337"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#ab0f3597d344e09ad6636c8bc72029337">ListDetachHead</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  119. <tr class="memdesc:ab0f3597d344e09ad6636c8bc72029337"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees an the first item in a list. <a href="LinkedList_8c.html#ab0f3597d344e09ad6636c8bc72029337">More...</a><br /></td></tr>
  120. <tr class="separator:ab0f3597d344e09ad6636c8bc72029337"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a5ee7cd1d29fd9299231d40c011174fcd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a5ee7cd1d29fd9299231d40c011174fcd">ListRemoveHead</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  122. <tr class="memdesc:a5ee7cd1d29fd9299231d40c011174fcd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees an the first item in a list. <a href="LinkedList_8c.html#a5ee7cd1d29fd9299231d40c011174fcd">More...</a><br /></td></tr>
  123. <tr class="separator:a5ee7cd1d29fd9299231d40c011174fcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a84b0ad14e7cebcd7b9ebab89a8d48321"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a84b0ad14e7cebcd7b9ebab89a8d48321">ListPopTail</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  125. <tr class="memdesc:a84b0ad14e7cebcd7b9ebab89a8d48321"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes but does not free the last item in a list. <a href="LinkedList_8c.html#a84b0ad14e7cebcd7b9ebab89a8d48321">More...</a><br /></td></tr>
  126. <tr class="separator:a84b0ad14e7cebcd7b9ebab89a8d48321"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a9ed745f7ba486d16d009e86433fece7b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a9ed745f7ba486d16d009e86433fece7b">ListDetachItem</a> (<a class="el" href="structList.html">List</a> *aList, void *content, int(*callback)(void *, void *))</td></tr>
  128. <tr class="memdesc:a9ed745f7ba486d16d009e86433fece7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes but does not free an element in a list by comparing the content. <a href="LinkedList_8c.html#a9ed745f7ba486d16d009e86433fece7b">More...</a><br /></td></tr>
  129. <tr class="separator:a9ed745f7ba486d16d009e86433fece7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a4bb7c34fe9a5832d65f530091e0fad0d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a4bb7c34fe9a5832d65f530091e0fad0d">ListRemoveItem</a> (<a class="el" href="structList.html">List</a> *aList, void *content, int(*callback)(void *, void *))</td></tr>
  131. <tr class="memdesc:a4bb7c34fe9a5832d65f530091e0fad0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees an element in a list by comparing the content. <a href="LinkedList_8c.html#a4bb7c34fe9a5832d65f530091e0fad0d">More...</a><br /></td></tr>
  132. <tr class="separator:a4bb7c34fe9a5832d65f530091e0fad0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a3cf8578dba23f97dd0411e85fe3b7ff2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a3cf8578dba23f97dd0411e85fe3b7ff2">ListEmpty</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  134. <tr class="memdesc:a3cf8578dba23f97dd0411e85fe3b7ff2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees all items in a list, leaving the list ready for new items. <a href="LinkedList_8c.html#a3cf8578dba23f97dd0411e85fe3b7ff2">More...</a><br /></td></tr>
  135. <tr class="separator:a3cf8578dba23f97dd0411e85fe3b7ff2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a276950531b3f54e0dda27d597572c192"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a276950531b3f54e0dda27d597572c192">ListFree</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  137. <tr class="memdesc:a276950531b3f54e0dda27d597572c192"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and frees all items in a list, and frees the list itself. <a href="LinkedList_8c.html#a276950531b3f54e0dda27d597572c192">More...</a><br /></td></tr>
  138. <tr class="separator:a276950531b3f54e0dda27d597572c192"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a8b3e61bc873a90ad2ea43a15e6c001f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a8b3e61bc873a90ad2ea43a15e6c001f4">ListFreeNoContent</a> (<a class="el" href="structList.html">List</a> *aList)</td></tr>
  140. <tr class="memdesc:a8b3e61bc873a90ad2ea43a15e6c001f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes and but does not free all items in a list, and frees the list itself. <a href="LinkedList_8c.html#a8b3e61bc873a90ad2ea43a15e6c001f4">More...</a><br /></td></tr>
  141. <tr class="separator:a8b3e61bc873a90ad2ea43a15e6c001f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a7c6fba7f4b569c69829676bed2852ee9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9">ListNextElement</a> (<a class="el" href="structList.html">List</a> *aList, <a class="el" href="structListElementStruct.html">ListElement</a> **pos)</td></tr>
  143. <tr class="memdesc:a7c6fba7f4b569c69829676bed2852ee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forward iteration through a list. <a href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9">More...</a><br /></td></tr>
  144. <tr class="separator:a7c6fba7f4b569c69829676bed2852ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a371f4a5021e6aa639bab6ab1457fc1d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a371f4a5021e6aa639bab6ab1457fc1d2">ListPrevElement</a> (<a class="el" href="structList.html">List</a> *aList, <a class="el" href="structListElementStruct.html">ListElement</a> **pos)</td></tr>
  146. <tr class="memdesc:a371f4a5021e6aa639bab6ab1457fc1d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Backward iteration through a list. <a href="LinkedList_8c.html#a371f4a5021e6aa639bab6ab1457fc1d2">More...</a><br /></td></tr>
  147. <tr class="separator:a371f4a5021e6aa639bab6ab1457fc1d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a1738915a6d6f10022e9ee1481c0ae452"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a1738915a6d6f10022e9ee1481c0ae452">intcompare</a> (void *a, void *b)</td></tr>
  149. <tr class="memdesc:a1738915a6d6f10022e9ee1481c0ae452"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="structList.html" title="Structure to hold all data for one list.">List</a> callback function for comparing integers. <a href="LinkedList_8c.html#a1738915a6d6f10022e9ee1481c0ae452">More...</a><br /></td></tr>
  150. <tr class="separator:a1738915a6d6f10022e9ee1481c0ae452"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a936806c4b6f6c10d91cc128b63ab110c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="LinkedList_8c.html#a936806c4b6f6c10d91cc128b63ab110c">stringcompare</a> (void *a, void *b)</td></tr>
  152. <tr class="memdesc:a936806c4b6f6c10d91cc128b63ab110c"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="structList.html" title="Structure to hold all data for one list.">List</a> callback function for comparing C strings. <a href="LinkedList_8c.html#a936806c4b6f6c10d91cc128b63ab110c">More...</a><br /></td></tr>
  153. <tr class="separator:a936806c4b6f6c10d91cc128b63ab110c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. </table>
  155. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  156. <div class="textblock"><p>functions which apply to linked list structures. </p>
  157. <p>These linked lists can hold data of any sort, pointed to by the content pointer of the ListElement structure. ListElements hold the points to the next and previous items in the list. </p>
  158. </div><h2 class="groupheader">Function Documentation</h2>
  159. <a id="a1738915a6d6f10022e9ee1481c0ae452"></a>
  160. <h2 class="memtitle"><span class="permalink"><a href="#a1738915a6d6f10022e9ee1481c0ae452">&#9670;&nbsp;</a></span>intcompare()</h2>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="memname">
  164. <tr>
  165. <td class="memname">int intcompare </td>
  166. <td>(</td>
  167. <td class="paramtype">void *&#160;</td>
  168. <td class="paramname"><em>a</em>, </td>
  169. </tr>
  170. <tr>
  171. <td class="paramkey"></td>
  172. <td></td>
  173. <td class="paramtype">void *&#160;</td>
  174. <td class="paramname"><em>b</em>&#160;</td>
  175. </tr>
  176. <tr>
  177. <td></td>
  178. <td>)</td>
  179. <td></td><td></td>
  180. </tr>
  181. </table>
  182. </div><div class="memdoc">
  183. <p><a class="el" href="structList.html" title="Structure to hold all data for one list.">List</a> callback function for comparing integers. </p>
  184. <dl class="params"><dt>Parameters</dt><dd>
  185. <table class="params">
  186. <tr><td class="paramname">a</td><td>first integer value </td></tr>
  187. <tr><td class="paramname">b</td><td>second integer value </td></tr>
  188. </table>
  189. </dd>
  190. </dl>
  191. <dl class="section return"><dt>Returns</dt><dd>boolean indicating whether a and b are equal </dd></dl>
  192. </div>
  193. </div>
  194. <a id="abc7a28449893dfa775c2f709349968b4"></a>
  195. <h2 class="memtitle"><span class="permalink"><a href="#abc7a28449893dfa775c2f709349968b4">&#9670;&nbsp;</a></span>ListAppend()</h2>
  196. <div class="memitem">
  197. <div class="memproto">
  198. <table class="memname">
  199. <tr>
  200. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListAppend </td>
  201. <td>(</td>
  202. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  203. <td class="paramname"><em>aList</em>, </td>
  204. </tr>
  205. <tr>
  206. <td class="paramkey"></td>
  207. <td></td>
  208. <td class="paramtype">void *&#160;</td>
  209. <td class="paramname"><em>content</em>, </td>
  210. </tr>
  211. <tr>
  212. <td class="paramkey"></td>
  213. <td></td>
  214. <td class="paramtype">size_t&#160;</td>
  215. <td class="paramname"><em>size</em>&#160;</td>
  216. </tr>
  217. <tr>
  218. <td></td>
  219. <td>)</td>
  220. <td></td><td></td>
  221. </tr>
  222. </table>
  223. </div><div class="memdoc">
  224. <p>Append an item to a list. </p>
  225. <dl class="params"><dt>Parameters</dt><dd>
  226. <table class="params">
  227. <tr><td class="paramname">aList</td><td>the list to which the item is to be added </td></tr>
  228. <tr><td class="paramname">content</td><td>the list item content itself </td></tr>
  229. <tr><td class="paramname">size</td><td>the size of the element </td></tr>
  230. </table>
  231. </dd>
  232. </dl>
  233. <div class="dynheader">
  234. Here is the call graph for this function:</div>
  235. <div class="dyncontent">
  236. <div class="center"><img src="LinkedList_8c_abc7a28449893dfa775c2f709349968b4_cgraph.png" border="0" usemap="#LinkedList_8c_abc7a28449893dfa775c2f709349968b4_cgraph" alt=""/></div>
  237. <map name="LinkedList_8c_abc7a28449893dfa775c2f709349968b4_cgraph" id="LinkedList_8c_abc7a28449893dfa775c2f709349968b4_cgraph">
  238. <area shape="rect" title="Append an item to a list." alt="" coords="5,5,93,32"/>
  239. <area shape="rect" href="LinkedList_8c.html#a321a3598d6979c7af3f995b77ea2cec3" title="Append an already allocated ListElement and content to a list." alt="" coords="141,5,284,32"/>
  240. </map>
  241. </div>
  242. </div>
  243. </div>
  244. <a id="a321a3598d6979c7af3f995b77ea2cec3"></a>
  245. <h2 class="memtitle"><span class="permalink"><a href="#a321a3598d6979c7af3f995b77ea2cec3">&#9670;&nbsp;</a></span>ListAppendNoMalloc()</h2>
  246. <div class="memitem">
  247. <div class="memproto">
  248. <table class="memname">
  249. <tr>
  250. <td class="memname">void ListAppendNoMalloc </td>
  251. <td>(</td>
  252. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  253. <td class="paramname"><em>aList</em>, </td>
  254. </tr>
  255. <tr>
  256. <td class="paramkey"></td>
  257. <td></td>
  258. <td class="paramtype">void *&#160;</td>
  259. <td class="paramname"><em>content</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td>
  265. <td class="paramname"><em>newel</em>, </td>
  266. </tr>
  267. <tr>
  268. <td class="paramkey"></td>
  269. <td></td>
  270. <td class="paramtype">size_t&#160;</td>
  271. <td class="paramname"><em>size</em>&#160;</td>
  272. </tr>
  273. <tr>
  274. <td></td>
  275. <td>)</td>
  276. <td></td><td></td>
  277. </tr>
  278. </table>
  279. </div><div class="memdoc">
  280. <p>Append an already allocated ListElement and content to a list. </p>
  281. <p>Can be used to move an item from one list to another. </p><dl class="params"><dt>Parameters</dt><dd>
  282. <table class="params">
  283. <tr><td class="paramname">aList</td><td>the list to which the item is to be added </td></tr>
  284. <tr><td class="paramname">content</td><td>the list item content itself </td></tr>
  285. <tr><td class="paramname">newel</td><td>the ListElement to be used in adding the new item </td></tr>
  286. <tr><td class="paramname">size</td><td>the size of the element </td></tr>
  287. </table>
  288. </dd>
  289. </dl>
  290. </div>
  291. </div>
  292. <a id="ab2bcc1897abf1d98490ea81c474dba52"></a>
  293. <h2 class="memtitle"><span class="permalink"><a href="#ab2bcc1897abf1d98490ea81c474dba52">&#9670;&nbsp;</a></span>ListDetach()</h2>
  294. <div class="memitem">
  295. <div class="memproto">
  296. <table class="memname">
  297. <tr>
  298. <td class="memname">int ListDetach </td>
  299. <td>(</td>
  300. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  301. <td class="paramname"><em>aList</em>, </td>
  302. </tr>
  303. <tr>
  304. <td class="paramkey"></td>
  305. <td></td>
  306. <td class="paramtype">void *&#160;</td>
  307. <td class="paramname"><em>content</em>&#160;</td>
  308. </tr>
  309. <tr>
  310. <td></td>
  311. <td>)</td>
  312. <td></td><td></td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <p>Removes but does not free an item in a list by comparing the pointer to the content. </p>
  317. <dl class="params"><dt>Parameters</dt><dd>
  318. <table class="params">
  319. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  320. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  321. </table>
  322. </dd>
  323. </dl>
  324. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  325. <div class="dynheader">
  326. Here is the call graph for this function:</div>
  327. <div class="dyncontent">
  328. <div class="center"><img src="LinkedList_8c_ab2bcc1897abf1d98490ea81c474dba52_cgraph.png" border="0" usemap="#LinkedList_8c_ab2bcc1897abf1d98490ea81c474dba52_cgraph" alt=""/></div>
  329. <map name="LinkedList_8c_ab2bcc1897abf1d98490ea81c474dba52_cgraph" id="LinkedList_8c_ab2bcc1897abf1d98490ea81c474dba52_cgraph">
  330. <area shape="rect" title="Removes but does not free an item in a list by comparing the pointer to the content." alt="" coords="5,5,91,32"/>
  331. <area shape="rect" href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296" title="Removes and optionally frees an element in a list by comparing the content." alt="" coords="139,5,220,32"/>
  332. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="268,5,363,32"/>
  333. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="411,5,529,32"/>
  334. </map>
  335. </div>
  336. </div>
  337. </div>
  338. <a id="ab0f3597d344e09ad6636c8bc72029337"></a>
  339. <h2 class="memtitle"><span class="permalink"><a href="#ab0f3597d344e09ad6636c8bc72029337">&#9670;&nbsp;</a></span>ListDetachHead()</h2>
  340. <div class="memitem">
  341. <div class="memproto">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">void* ListDetachHead </td>
  345. <td>(</td>
  346. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  347. <td class="paramname"><em>aList</em></td><td>)</td>
  348. <td></td>
  349. </tr>
  350. </table>
  351. </div><div class="memdoc">
  352. <p>Removes and frees an the first item in a list. </p>
  353. <dl class="params"><dt>Parameters</dt><dd>
  354. <table class="params">
  355. <tr><td class="paramname">aList</td><td>the list from which the item is to be removed </td></tr>
  356. </table>
  357. </dd>
  358. </dl>
  359. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  360. </div>
  361. </div>
  362. <a id="a9ed745f7ba486d16d009e86433fece7b"></a>
  363. <h2 class="memtitle"><span class="permalink"><a href="#a9ed745f7ba486d16d009e86433fece7b">&#9670;&nbsp;</a></span>ListDetachItem()</h2>
  364. <div class="memitem">
  365. <div class="memproto">
  366. <table class="memname">
  367. <tr>
  368. <td class="memname">int ListDetachItem </td>
  369. <td>(</td>
  370. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  371. <td class="paramname"><em>aList</em>, </td>
  372. </tr>
  373. <tr>
  374. <td class="paramkey"></td>
  375. <td></td>
  376. <td class="paramtype">void *&#160;</td>
  377. <td class="paramname"><em>content</em>, </td>
  378. </tr>
  379. <tr>
  380. <td class="paramkey"></td>
  381. <td></td>
  382. <td class="paramtype">int(*)(void *, void *)&#160;</td>
  383. <td class="paramname"><em>callback</em>&#160;</td>
  384. </tr>
  385. <tr>
  386. <td></td>
  387. <td>)</td>
  388. <td></td><td></td>
  389. </tr>
  390. </table>
  391. </div><div class="memdoc">
  392. <p>Removes but does not free an element in a list by comparing the content. </p>
  393. <p>A callback function is used to define the method of comparison for each element. </p><dl class="params"><dt>Parameters</dt><dd>
  394. <table class="params">
  395. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  396. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  397. <tr><td class="paramname">callback</td><td>pointer to a function which compares each element </td></tr>
  398. </table>
  399. </dd>
  400. </dl>
  401. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  402. <div class="dynheader">
  403. Here is the call graph for this function:</div>
  404. <div class="dyncontent">
  405. <div class="center"><img src="LinkedList_8c_a9ed745f7ba486d16d009e86433fece7b_cgraph.png" border="0" usemap="#LinkedList_8c_a9ed745f7ba486d16d009e86433fece7b_cgraph" alt=""/></div>
  406. <map name="LinkedList_8c_a9ed745f7ba486d16d009e86433fece7b_cgraph" id="LinkedList_8c_a9ed745f7ba486d16d009e86433fece7b_cgraph">
  407. <area shape="rect" title="Removes but does not free an element in a list by comparing the content." alt="" coords="5,5,116,32"/>
  408. <area shape="rect" href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296" title="Removes and optionally frees an element in a list by comparing the content." alt="" coords="164,5,245,32"/>
  409. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="293,5,388,32"/>
  410. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="436,5,555,32"/>
  411. </map>
  412. </div>
  413. </div>
  414. </div>
  415. <a id="a3cf8578dba23f97dd0411e85fe3b7ff2"></a>
  416. <h2 class="memtitle"><span class="permalink"><a href="#a3cf8578dba23f97dd0411e85fe3b7ff2">&#9670;&nbsp;</a></span>ListEmpty()</h2>
  417. <div class="memitem">
  418. <div class="memproto">
  419. <table class="memname">
  420. <tr>
  421. <td class="memname">void ListEmpty </td>
  422. <td>(</td>
  423. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  424. <td class="paramname"><em>aList</em></td><td>)</td>
  425. <td></td>
  426. </tr>
  427. </table>
  428. </div><div class="memdoc">
  429. <p>Removes and frees all items in a list, leaving the list ready for new items. </p>
  430. <dl class="params"><dt>Parameters</dt><dd>
  431. <table class="params">
  432. <tr><td class="paramname">aList</td><td>the list to which the operation is to be applied </td></tr>
  433. </table>
  434. </dd>
  435. </dl>
  436. </div>
  437. </div>
  438. <a id="ad2879a10b723fb7c1f95c0ad0abdbc50"></a>
  439. <h2 class="memtitle"><span class="permalink"><a href="#ad2879a10b723fb7c1f95c0ad0abdbc50">&#9670;&nbsp;</a></span>ListFind()</h2>
  440. <div class="memitem">
  441. <div class="memproto">
  442. <table class="memname">
  443. <tr>
  444. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListFind </td>
  445. <td>(</td>
  446. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  447. <td class="paramname"><em>aList</em>, </td>
  448. </tr>
  449. <tr>
  450. <td class="paramkey"></td>
  451. <td></td>
  452. <td class="paramtype">void *&#160;</td>
  453. <td class="paramname"><em>content</em>&#160;</td>
  454. </tr>
  455. <tr>
  456. <td></td>
  457. <td>)</td>
  458. <td></td><td></td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. <p>Finds an element in a list by comparing the content pointers, rather than the contents. </p>
  463. <dl class="params"><dt>Parameters</dt><dd>
  464. <table class="params">
  465. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  466. <tr><td class="paramname">content</td><td>pointer to the list item content itself </td></tr>
  467. </table>
  468. </dd>
  469. </dl>
  470. <dl class="section return"><dt>Returns</dt><dd>the list item found, or NULL </dd></dl>
  471. <div class="dynheader">
  472. Here is the call graph for this function:</div>
  473. <div class="dyncontent">
  474. <div class="center"><img src="LinkedList_8c_ad2879a10b723fb7c1f95c0ad0abdbc50_cgraph.png" border="0" usemap="#LinkedList_8c_ad2879a10b723fb7c1f95c0ad0abdbc50_cgraph" alt=""/></div>
  475. <map name="LinkedList_8c_ad2879a10b723fb7c1f95c0ad0abdbc50_cgraph" id="LinkedList_8c_ad2879a10b723fb7c1f95c0ad0abdbc50_cgraph">
  476. <area shape="rect" title="Finds an element in a list by comparing the content pointers, rather than the contents." alt="" coords="5,5,75,32"/>
  477. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="123,5,217,32"/>
  478. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="265,5,384,32"/>
  479. </map>
  480. </div>
  481. </div>
  482. </div>
  483. <a id="acad319e9ce896ff1fff30ddbeb06d22d"></a>
  484. <h2 class="memtitle"><span class="permalink"><a href="#acad319e9ce896ff1fff30ddbeb06d22d">&#9670;&nbsp;</a></span>ListFindItem()</h2>
  485. <div class="memitem">
  486. <div class="memproto">
  487. <table class="memname">
  488. <tr>
  489. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListFindItem </td>
  490. <td>(</td>
  491. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  492. <td class="paramname"><em>aList</em>, </td>
  493. </tr>
  494. <tr>
  495. <td class="paramkey"></td>
  496. <td></td>
  497. <td class="paramtype">void *&#160;</td>
  498. <td class="paramname"><em>content</em>, </td>
  499. </tr>
  500. <tr>
  501. <td class="paramkey"></td>
  502. <td></td>
  503. <td class="paramtype">int(*)(void *, void *)&#160;</td>
  504. <td class="paramname"><em>callback</em>&#160;</td>
  505. </tr>
  506. <tr>
  507. <td></td>
  508. <td>)</td>
  509. <td></td><td></td>
  510. </tr>
  511. </table>
  512. </div><div class="memdoc">
  513. <p>Finds an element in a list by comparing the content or pointer to the content. </p>
  514. <p>A callback function is used to define the method of comparison for each element. </p><dl class="params"><dt>Parameters</dt><dd>
  515. <table class="params">
  516. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  517. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  518. <tr><td class="paramname">callback</td><td>pointer to a function which compares each element (NULL means compare by content pointer) </td></tr>
  519. </table>
  520. </dd>
  521. </dl>
  522. <dl class="section return"><dt>Returns</dt><dd>the list element found, or NULL </dd></dl>
  523. <div class="dynheader">
  524. Here is the call graph for this function:</div>
  525. <div class="dyncontent">
  526. <div class="center"><img src="LinkedList_8c_acad319e9ce896ff1fff30ddbeb06d22d_cgraph.png" border="0" usemap="#LinkedList_8c_acad319e9ce896ff1fff30ddbeb06d22d_cgraph" alt=""/></div>
  527. <map name="LinkedList_8c_acad319e9ce896ff1fff30ddbeb06d22d_cgraph" id="LinkedList_8c_acad319e9ce896ff1fff30ddbeb06d22d_cgraph">
  528. <area shape="rect" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="5,5,100,32"/>
  529. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="148,5,267,32"/>
  530. </map>
  531. </div>
  532. </div>
  533. </div>
  534. <a id="a276950531b3f54e0dda27d597572c192"></a>
  535. <h2 class="memtitle"><span class="permalink"><a href="#a276950531b3f54e0dda27d597572c192">&#9670;&nbsp;</a></span>ListFree()</h2>
  536. <div class="memitem">
  537. <div class="memproto">
  538. <table class="memname">
  539. <tr>
  540. <td class="memname">void ListFree </td>
  541. <td>(</td>
  542. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  543. <td class="paramname"><em>aList</em></td><td>)</td>
  544. <td></td>
  545. </tr>
  546. </table>
  547. </div><div class="memdoc">
  548. <p>Removes and frees all items in a list, and frees the list itself. </p>
  549. <dl class="params"><dt>Parameters</dt><dd>
  550. <table class="params">
  551. <tr><td class="paramname">aList</td><td>the list to which the operation is to be applied </td></tr>
  552. </table>
  553. </dd>
  554. </dl>
  555. <div class="dynheader">
  556. Here is the call graph for this function:</div>
  557. <div class="dyncontent">
  558. <div class="center"><img src="LinkedList_8c_a276950531b3f54e0dda27d597572c192_cgraph.png" border="0" usemap="#LinkedList_8c_a276950531b3f54e0dda27d597572c192_cgraph" alt=""/></div>
  559. <map name="LinkedList_8c_a276950531b3f54e0dda27d597572c192_cgraph" id="LinkedList_8c_a276950531b3f54e0dda27d597572c192_cgraph">
  560. <area shape="rect" title="Removes and frees all items in a list, and frees the list itself." alt="" coords="5,5,76,32"/>
  561. <area shape="rect" href="LinkedList_8c.html#a3cf8578dba23f97dd0411e85fe3b7ff2" title="Removes and frees all items in a list, leaving the list ready for new items." alt="" coords="124,5,204,32"/>
  562. </map>
  563. </div>
  564. </div>
  565. </div>
  566. <a id="a8b3e61bc873a90ad2ea43a15e6c001f4"></a>
  567. <h2 class="memtitle"><span class="permalink"><a href="#a8b3e61bc873a90ad2ea43a15e6c001f4">&#9670;&nbsp;</a></span>ListFreeNoContent()</h2>
  568. <div class="memitem">
  569. <div class="memproto">
  570. <table class="memname">
  571. <tr>
  572. <td class="memname">void ListFreeNoContent </td>
  573. <td>(</td>
  574. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  575. <td class="paramname"><em>aList</em></td><td>)</td>
  576. <td></td>
  577. </tr>
  578. </table>
  579. </div><div class="memdoc">
  580. <p>Removes and but does not free all items in a list, and frees the list itself. </p>
  581. <dl class="params"><dt>Parameters</dt><dd>
  582. <table class="params">
  583. <tr><td class="paramname">aList</td><td>the list to which the operation is to be applied </td></tr>
  584. </table>
  585. </dd>
  586. </dl>
  587. </div>
  588. </div>
  589. <a id="a27e2cccab9752618ead91eafbe2a9a46"></a>
  590. <h2 class="memtitle"><span class="permalink"><a href="#a27e2cccab9752618ead91eafbe2a9a46">&#9670;&nbsp;</a></span>ListInitialize()</h2>
  591. <div class="memitem">
  592. <div class="memproto">
  593. <table class="memname">
  594. <tr>
  595. <td class="memname"><a class="el" href="structList.html">List</a>* ListInitialize </td>
  596. <td>(</td>
  597. <td class="paramtype">void&#160;</td>
  598. <td class="paramname"></td><td>)</td>
  599. <td></td>
  600. </tr>
  601. </table>
  602. </div><div class="memdoc">
  603. <p>Allocates and initializes a new list structure. </p>
  604. <dl class="section return"><dt>Returns</dt><dd>a pointer to the new list structure </dd></dl>
  605. <div class="dynheader">
  606. Here is the call graph for this function:</div>
  607. <div class="dyncontent">
  608. <div class="center"><img src="LinkedList_8c_a27e2cccab9752618ead91eafbe2a9a46_cgraph.png" border="0" usemap="#LinkedList_8c_a27e2cccab9752618ead91eafbe2a9a46_cgraph" alt=""/></div>
  609. <map name="LinkedList_8c_a27e2cccab9752618ead91eafbe2a9a46_cgraph" id="LinkedList_8c_a27e2cccab9752618ead91eafbe2a9a46_cgraph">
  610. <area shape="rect" title="Allocates and initializes a new list structure." alt="" coords="5,5,96,32"/>
  611. <area shape="rect" href="LinkedList_8c.html#aa254fb1eab8e30d0e03859b333dc22ed" title="Sets a list structure to empty &#45; all null values." alt="" coords="144,5,215,32"/>
  612. </map>
  613. </div>
  614. </div>
  615. </div>
  616. <a id="aabca387fa4b86475bc9e4da40c3977fc"></a>
  617. <h2 class="memtitle"><span class="permalink"><a href="#aabca387fa4b86475bc9e4da40c3977fc">&#9670;&nbsp;</a></span>ListInsert()</h2>
  618. <div class="memitem">
  619. <div class="memproto">
  620. <table class="memname">
  621. <tr>
  622. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListInsert </td>
  623. <td>(</td>
  624. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  625. <td class="paramname"><em>aList</em>, </td>
  626. </tr>
  627. <tr>
  628. <td class="paramkey"></td>
  629. <td></td>
  630. <td class="paramtype">void *&#160;</td>
  631. <td class="paramname"><em>content</em>, </td>
  632. </tr>
  633. <tr>
  634. <td class="paramkey"></td>
  635. <td></td>
  636. <td class="paramtype">size_t&#160;</td>
  637. <td class="paramname"><em>size</em>, </td>
  638. </tr>
  639. <tr>
  640. <td class="paramkey"></td>
  641. <td></td>
  642. <td class="paramtype"><a class="el" href="structListElementStruct.html">ListElement</a> *&#160;</td>
  643. <td class="paramname"><em>index</em>&#160;</td>
  644. </tr>
  645. <tr>
  646. <td></td>
  647. <td>)</td>
  648. <td></td><td></td>
  649. </tr>
  650. </table>
  651. </div><div class="memdoc">
  652. <p>Insert an item to a list at a specific position. </p>
  653. <dl class="params"><dt>Parameters</dt><dd>
  654. <table class="params">
  655. <tr><td class="paramname">aList</td><td>the list to which the item is to be added </td></tr>
  656. <tr><td class="paramname">content</td><td>the list item content itself </td></tr>
  657. <tr><td class="paramname">size</td><td>the size of the element </td></tr>
  658. <tr><td class="paramname">index</td><td>the position in the list. If NULL, this function is equivalent to ListAppend. </td></tr>
  659. </table>
  660. </dd>
  661. </dl>
  662. <div class="dynheader">
  663. Here is the call graph for this function:</div>
  664. <div class="dyncontent">
  665. <div class="center"><img src="LinkedList_8c_aabca387fa4b86475bc9e4da40c3977fc_cgraph.png" border="0" usemap="#LinkedList_8c_aabca387fa4b86475bc9e4da40c3977fc_cgraph" alt=""/></div>
  666. <map name="LinkedList_8c_aabca387fa4b86475bc9e4da40c3977fc_cgraph" id="LinkedList_8c_aabca387fa4b86475bc9e4da40c3977fc_cgraph">
  667. <area shape="rect" title="Insert an item to a list at a specific position." alt="" coords="5,5,83,32"/>
  668. <area shape="rect" href="LinkedList_8c.html#a321a3598d6979c7af3f995b77ea2cec3" title="Append an already allocated ListElement and content to a list." alt="" coords="131,5,273,32"/>
  669. </map>
  670. </div>
  671. </div>
  672. </div>
  673. <a id="a7c6fba7f4b569c69829676bed2852ee9"></a>
  674. <h2 class="memtitle"><span class="permalink"><a href="#a7c6fba7f4b569c69829676bed2852ee9">&#9670;&nbsp;</a></span>ListNextElement()</h2>
  675. <div class="memitem">
  676. <div class="memproto">
  677. <table class="memname">
  678. <tr>
  679. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListNextElement </td>
  680. <td>(</td>
  681. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  682. <td class="paramname"><em>aList</em>, </td>
  683. </tr>
  684. <tr>
  685. <td class="paramkey"></td>
  686. <td></td>
  687. <td class="paramtype"><a class="el" href="structListElementStruct.html">ListElement</a> **&#160;</td>
  688. <td class="paramname"><em>pos</em>&#160;</td>
  689. </tr>
  690. <tr>
  691. <td></td>
  692. <td>)</td>
  693. <td></td><td></td>
  694. </tr>
  695. </table>
  696. </div><div class="memdoc">
  697. <p>Forward iteration through a list. </p>
  698. <dl class="params"><dt>Parameters</dt><dd>
  699. <table class="params">
  700. <tr><td class="paramname">aList</td><td>the list to which the operation is to be applied </td></tr>
  701. <tr><td class="paramname">pos</td><td>pointer to the current position in the list. NULL means start from the beginning of the list This is updated on return to the same value as that returned from this function </td></tr>
  702. </table>
  703. </dd>
  704. </dl>
  705. <dl class="section return"><dt>Returns</dt><dd>pointer to the current list element </dd></dl>
  706. </div>
  707. </div>
  708. <a id="a84b0ad14e7cebcd7b9ebab89a8d48321"></a>
  709. <h2 class="memtitle"><span class="permalink"><a href="#a84b0ad14e7cebcd7b9ebab89a8d48321">&#9670;&nbsp;</a></span>ListPopTail()</h2>
  710. <div class="memitem">
  711. <div class="memproto">
  712. <table class="memname">
  713. <tr>
  714. <td class="memname">void* ListPopTail </td>
  715. <td>(</td>
  716. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  717. <td class="paramname"><em>aList</em></td><td>)</td>
  718. <td></td>
  719. </tr>
  720. </table>
  721. </div><div class="memdoc">
  722. <p>Removes but does not free the last item in a list. </p>
  723. <dl class="params"><dt>Parameters</dt><dd>
  724. <table class="params">
  725. <tr><td class="paramname">aList</td><td>the list from which the item is to be removed </td></tr>
  726. </table>
  727. </dd>
  728. </dl>
  729. <dl class="section return"><dt>Returns</dt><dd>the last item removed (or NULL if none was) </dd></dl>
  730. </div>
  731. </div>
  732. <a id="a371f4a5021e6aa639bab6ab1457fc1d2"></a>
  733. <h2 class="memtitle"><span class="permalink"><a href="#a371f4a5021e6aa639bab6ab1457fc1d2">&#9670;&nbsp;</a></span>ListPrevElement()</h2>
  734. <div class="memitem">
  735. <div class="memproto">
  736. <table class="memname">
  737. <tr>
  738. <td class="memname"><a class="el" href="structListElementStruct.html">ListElement</a>* ListPrevElement </td>
  739. <td>(</td>
  740. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  741. <td class="paramname"><em>aList</em>, </td>
  742. </tr>
  743. <tr>
  744. <td class="paramkey"></td>
  745. <td></td>
  746. <td class="paramtype"><a class="el" href="structListElementStruct.html">ListElement</a> **&#160;</td>
  747. <td class="paramname"><em>pos</em>&#160;</td>
  748. </tr>
  749. <tr>
  750. <td></td>
  751. <td>)</td>
  752. <td></td><td></td>
  753. </tr>
  754. </table>
  755. </div><div class="memdoc">
  756. <p>Backward iteration through a list. </p>
  757. <dl class="params"><dt>Parameters</dt><dd>
  758. <table class="params">
  759. <tr><td class="paramname">aList</td><td>the list to which the operation is to be applied </td></tr>
  760. <tr><td class="paramname">pos</td><td>pointer to the current position in the list. NULL means start from the end of the list This is updated on return to the same value as that returned from this function </td></tr>
  761. </table>
  762. </dd>
  763. </dl>
  764. <dl class="section return"><dt>Returns</dt><dd>pointer to the current list element </dd></dl>
  765. </div>
  766. </div>
  767. <a id="a8430370b2b15c56ec95bb8e7e36753a5"></a>
  768. <h2 class="memtitle"><span class="permalink"><a href="#a8430370b2b15c56ec95bb8e7e36753a5">&#9670;&nbsp;</a></span>ListRemove()</h2>
  769. <div class="memitem">
  770. <div class="memproto">
  771. <table class="memname">
  772. <tr>
  773. <td class="memname">int ListRemove </td>
  774. <td>(</td>
  775. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  776. <td class="paramname"><em>aList</em>, </td>
  777. </tr>
  778. <tr>
  779. <td class="paramkey"></td>
  780. <td></td>
  781. <td class="paramtype">void *&#160;</td>
  782. <td class="paramname"><em>content</em>&#160;</td>
  783. </tr>
  784. <tr>
  785. <td></td>
  786. <td>)</td>
  787. <td></td><td></td>
  788. </tr>
  789. </table>
  790. </div><div class="memdoc">
  791. <p>Removes and frees an item in a list by comparing the pointer to the content. </p>
  792. <dl class="params"><dt>Parameters</dt><dd>
  793. <table class="params">
  794. <tr><td class="paramname">aList</td><td>the list from which the item is to be removed </td></tr>
  795. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  796. </table>
  797. </dd>
  798. </dl>
  799. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  800. <div class="dynheader">
  801. Here is the call graph for this function:</div>
  802. <div class="dyncontent">
  803. <div class="center"><img src="LinkedList_8c_a8430370b2b15c56ec95bb8e7e36753a5_cgraph.png" border="0" usemap="#LinkedList_8c_a8430370b2b15c56ec95bb8e7e36753a5_cgraph" alt=""/></div>
  804. <map name="LinkedList_8c_a8430370b2b15c56ec95bb8e7e36753a5_cgraph" id="LinkedList_8c_a8430370b2b15c56ec95bb8e7e36753a5_cgraph">
  805. <area shape="rect" title="Removes and frees an item in a list by comparing the pointer to the content." alt="" coords="5,5,97,32"/>
  806. <area shape="rect" href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296" title="Removes and optionally frees an element in a list by comparing the content." alt="" coords="145,5,227,32"/>
  807. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="275,5,369,32"/>
  808. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="417,5,536,32"/>
  809. </map>
  810. </div>
  811. </div>
  812. </div>
  813. <a id="a5ee7cd1d29fd9299231d40c011174fcd"></a>
  814. <h2 class="memtitle"><span class="permalink"><a href="#a5ee7cd1d29fd9299231d40c011174fcd">&#9670;&nbsp;</a></span>ListRemoveHead()</h2>
  815. <div class="memitem">
  816. <div class="memproto">
  817. <table class="memname">
  818. <tr>
  819. <td class="memname">int ListRemoveHead </td>
  820. <td>(</td>
  821. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  822. <td class="paramname"><em>aList</em></td><td>)</td>
  823. <td></td>
  824. </tr>
  825. </table>
  826. </div><div class="memdoc">
  827. <p>Removes and frees an the first item in a list. </p>
  828. <dl class="params"><dt>Parameters</dt><dd>
  829. <table class="params">
  830. <tr><td class="paramname">aList</td><td>the list from which the item is to be removed </td></tr>
  831. </table>
  832. </dd>
  833. </dl>
  834. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  835. <div class="dynheader">
  836. Here is the call graph for this function:</div>
  837. <div class="dyncontent">
  838. <div class="center"><img src="LinkedList_8c_a5ee7cd1d29fd9299231d40c011174fcd_cgraph.png" border="0" usemap="#LinkedList_8c_a5ee7cd1d29fd9299231d40c011174fcd_cgraph" alt=""/></div>
  839. <map name="LinkedList_8c_a5ee7cd1d29fd9299231d40c011174fcd_cgraph" id="LinkedList_8c_a5ee7cd1d29fd9299231d40c011174fcd_cgraph">
  840. <area shape="rect" title="Removes and frees an the first item in a list." alt="" coords="5,5,128,32"/>
  841. <area shape="rect" href="LinkedList_8c.html#ab0f3597d344e09ad6636c8bc72029337" title="Removes and frees an the first item in a list." alt="" coords="176,5,292,32"/>
  842. </map>
  843. </div>
  844. </div>
  845. </div>
  846. <a id="a4bb7c34fe9a5832d65f530091e0fad0d"></a>
  847. <h2 class="memtitle"><span class="permalink"><a href="#a4bb7c34fe9a5832d65f530091e0fad0d">&#9670;&nbsp;</a></span>ListRemoveItem()</h2>
  848. <div class="memitem">
  849. <div class="memproto">
  850. <table class="memname">
  851. <tr>
  852. <td class="memname">int ListRemoveItem </td>
  853. <td>(</td>
  854. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  855. <td class="paramname"><em>aList</em>, </td>
  856. </tr>
  857. <tr>
  858. <td class="paramkey"></td>
  859. <td></td>
  860. <td class="paramtype">void *&#160;</td>
  861. <td class="paramname"><em>content</em>, </td>
  862. </tr>
  863. <tr>
  864. <td class="paramkey"></td>
  865. <td></td>
  866. <td class="paramtype">int(*)(void *, void *)&#160;</td>
  867. <td class="paramname"><em>callback</em>&#160;</td>
  868. </tr>
  869. <tr>
  870. <td></td>
  871. <td>)</td>
  872. <td></td><td></td>
  873. </tr>
  874. </table>
  875. </div><div class="memdoc">
  876. <p>Removes and frees an element in a list by comparing the content. </p>
  877. <p>A callback function is used to define the method of comparison for each element </p><dl class="params"><dt>Parameters</dt><dd>
  878. <table class="params">
  879. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  880. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  881. <tr><td class="paramname">callback</td><td>pointer to a function which compares each element </td></tr>
  882. </table>
  883. </dd>
  884. </dl>
  885. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  886. <div class="dynheader">
  887. Here is the call graph for this function:</div>
  888. <div class="dyncontent">
  889. <div class="center"><img src="LinkedList_8c_a4bb7c34fe9a5832d65f530091e0fad0d_cgraph.png" border="0" usemap="#LinkedList_8c_a4bb7c34fe9a5832d65f530091e0fad0d_cgraph" alt=""/></div>
  890. <map name="LinkedList_8c_a4bb7c34fe9a5832d65f530091e0fad0d_cgraph" id="LinkedList_8c_a4bb7c34fe9a5832d65f530091e0fad0d_cgraph">
  891. <area shape="rect" title="Removes and frees an element in a list by comparing the content." alt="" coords="5,5,124,32"/>
  892. <area shape="rect" href="LinkedList_8c.html#ab82181e0c1d96954f82dee67cee41296" title="Removes and optionally frees an element in a list by comparing the content." alt="" coords="172,5,253,32"/>
  893. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="301,5,396,32"/>
  894. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="444,5,563,32"/>
  895. </map>
  896. </div>
  897. </div>
  898. </div>
  899. <a id="ab82181e0c1d96954f82dee67cee41296"></a>
  900. <h2 class="memtitle"><span class="permalink"><a href="#ab82181e0c1d96954f82dee67cee41296">&#9670;&nbsp;</a></span>ListUnlink()</h2>
  901. <div class="memitem">
  902. <div class="memproto">
  903. <table class="mlabels">
  904. <tr>
  905. <td class="mlabels-left">
  906. <table class="memname">
  907. <tr>
  908. <td class="memname">static int ListUnlink </td>
  909. <td>(</td>
  910. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  911. <td class="paramname"><em>aList</em>, </td>
  912. </tr>
  913. <tr>
  914. <td class="paramkey"></td>
  915. <td></td>
  916. <td class="paramtype">void *&#160;</td>
  917. <td class="paramname"><em>content</em>, </td>
  918. </tr>
  919. <tr>
  920. <td class="paramkey"></td>
  921. <td></td>
  922. <td class="paramtype">int(*)(void *, void *)&#160;</td>
  923. <td class="paramname"><em>callback</em>, </td>
  924. </tr>
  925. <tr>
  926. <td class="paramkey"></td>
  927. <td></td>
  928. <td class="paramtype">int&#160;</td>
  929. <td class="paramname"><em>freeContent</em>&#160;</td>
  930. </tr>
  931. <tr>
  932. <td></td>
  933. <td>)</td>
  934. <td></td><td></td>
  935. </tr>
  936. </table>
  937. </td>
  938. <td class="mlabels-right">
  939. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  940. </tr>
  941. </table>
  942. </div><div class="memdoc">
  943. <p>Removes and optionally frees an element in a list by comparing the content. </p>
  944. <p>A callback function is used to define the method of comparison for each element. </p><dl class="params"><dt>Parameters</dt><dd>
  945. <table class="params">
  946. <tr><td class="paramname">aList</td><td>the list in which the search is to be conducted </td></tr>
  947. <tr><td class="paramname">content</td><td>pointer to the content to look for </td></tr>
  948. <tr><td class="paramname">callback</td><td>pointer to a function which compares each element </td></tr>
  949. <tr><td class="paramname">freeContent</td><td>boolean value to indicate whether the item found is to be freed </td></tr>
  950. </table>
  951. </dd>
  952. </dl>
  953. <dl class="section return"><dt>Returns</dt><dd>1=item removed, 0=item not removed </dd></dl>
  954. <div class="dynheader">
  955. Here is the call graph for this function:</div>
  956. <div class="dyncontent">
  957. <div class="center"><img src="LinkedList_8c_ab82181e0c1d96954f82dee67cee41296_cgraph.png" border="0" usemap="#LinkedList_8c_ab82181e0c1d96954f82dee67cee41296_cgraph" alt=""/></div>
  958. <map name="LinkedList_8c_ab82181e0c1d96954f82dee67cee41296_cgraph" id="LinkedList_8c_ab82181e0c1d96954f82dee67cee41296_cgraph">
  959. <area shape="rect" title="Removes and optionally frees an element in a list by comparing the content." alt="" coords="5,5,87,32"/>
  960. <area shape="rect" href="LinkedList_8c.html#acad319e9ce896ff1fff30ddbeb06d22d" title="Finds an element in a list by comparing the content or pointer to the content." alt="" coords="135,5,229,32"/>
  961. <area shape="rect" href="LinkedList_8c.html#a7c6fba7f4b569c69829676bed2852ee9" title="Forward iteration through a list." alt="" coords="277,5,396,32"/>
  962. </map>
  963. </div>
  964. </div>
  965. </div>
  966. <a id="aa254fb1eab8e30d0e03859b333dc22ed"></a>
  967. <h2 class="memtitle"><span class="permalink"><a href="#aa254fb1eab8e30d0e03859b333dc22ed">&#9670;&nbsp;</a></span>ListZero()</h2>
  968. <div class="memitem">
  969. <div class="memproto">
  970. <table class="memname">
  971. <tr>
  972. <td class="memname">void ListZero </td>
  973. <td>(</td>
  974. <td class="paramtype"><a class="el" href="structList.html">List</a> *&#160;</td>
  975. <td class="paramname"><em>newl</em></td><td>)</td>
  976. <td></td>
  977. </tr>
  978. </table>
  979. </div><div class="memdoc">
  980. <p>Sets a list structure to empty - all null values. </p>
  981. <p>Does not remove any items from the list. </p><dl class="params"><dt>Parameters</dt><dd>
  982. <table class="params">
  983. <tr><td class="paramname">newl</td><td>a pointer to the list structure to be initialized </td></tr>
  984. </table>
  985. </dd>
  986. </dl>
  987. </div>
  988. </div>
  989. <a id="a936806c4b6f6c10d91cc128b63ab110c"></a>
  990. <h2 class="memtitle"><span class="permalink"><a href="#a936806c4b6f6c10d91cc128b63ab110c">&#9670;&nbsp;</a></span>stringcompare()</h2>
  991. <div class="memitem">
  992. <div class="memproto">
  993. <table class="memname">
  994. <tr>
  995. <td class="memname">int stringcompare </td>
  996. <td>(</td>
  997. <td class="paramtype">void *&#160;</td>
  998. <td class="paramname"><em>a</em>, </td>
  999. </tr>
  1000. <tr>
  1001. <td class="paramkey"></td>
  1002. <td></td>
  1003. <td class="paramtype">void *&#160;</td>
  1004. <td class="paramname"><em>b</em>&#160;</td>
  1005. </tr>
  1006. <tr>
  1007. <td></td>
  1008. <td>)</td>
  1009. <td></td><td></td>
  1010. </tr>
  1011. </table>
  1012. </div><div class="memdoc">
  1013. <p><a class="el" href="structList.html" title="Structure to hold all data for one list.">List</a> callback function for comparing C strings. </p>
  1014. <dl class="params"><dt>Parameters</dt><dd>
  1015. <table class="params">
  1016. <tr><td class="paramname">a</td><td>first integer value </td></tr>
  1017. <tr><td class="paramname">b</td><td>second integer value </td></tr>
  1018. </table>
  1019. </dd>
  1020. </dl>
  1021. <dl class="section return"><dt>Returns</dt><dd>boolean indicating whether a and b are equal </dd></dl>
  1022. </div>
  1023. </div>
  1024. </div><!-- contents -->
  1025. <!-- start footer part -->
  1026. <hr class="footer"/><address class="footer"><small>
  1027. Generated on Thu Sep 29 2022 11:34:46 for MQTT C Client Libraries Internals by &#160;<a href="http://www.doxygen.org/index.html">
  1028. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1029. </a> 1.8.17
  1030. </small></address>
  1031. </body>
  1032. </html>