?? compare-int_8h.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>C Algorithms: compare-int.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.4 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>compare-int.h File Reference</h1>Comparison functions for pointers to integers. <a href="#_details">More...</a><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="compare-int_8h.html#a0">int_equal</a> (void *location1, void *location2)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Compare the integer values pointed at by two pointers to determine if they are equal. <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="compare-int_8h.html#a1">int_compare</a> (void *location1, void *location2)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Compare the integer values pointed at by two pointers. <a href="#a1"></a><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Comparison functions for pointers to integers. <p>To find the difference between two values pointed at, use <a class="el" href="compare-int_8h.html#a1">int_compare</a>.<p>To find if two values pointed at are equal, use <a class="el" href="compare-int_8h.html#a0">int_equal</a>.<hr><h2>Function Documentation</h2><a class="anchor" name="a1"></a><!-- doxytag: member="compare-int.h::int_compare" ref="a1" args="(void *location1, void *location2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int int_compare </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>location1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>location2</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Compare the integer values pointed at by two pointers. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>location1</em> </td><td>Pointer to the first value to compare. </td></tr> <tr><td valign="top"></td><td valign="top"><em>location2</em> </td><td>Pointer to the second value to compare. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A negative value if the first value is less than the second value, a positive value if the first value is greater than the second value, zero if they are equal.</dd></dl> </td> </tr></table><a class="anchor" name="a0"></a><!-- doxytag: member="compare-int.h::int_equal" ref="a0" args="(void *location1, void *location2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int int_equal </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>location1</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>location2</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Compare the integer values pointed at by two pointers to determine if they are equal. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>location1</em> </td><td>Pointer to the first value to compare. </td></tr> <tr><td valign="top"></td><td valign="top"><em>location2</em> </td><td>Pointer to the second value to compare. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Non-zero if the two values are equal, zero if the two values are not equal.</dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 30 18:56:23 2006 for C Algorithms by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -