<!-- HTML header for doxygen 1.8.10--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <title>Intel® Enhanced Privacy ID SDK: epid/member/tiny/stdlib/tiny_stdlib.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="epidstyle.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname"><a onclick="storeLink('index.html')" id="projectlink" class="index.html" href="index.html">Intel® Enhanced Privacy ID SDK</a>  <span id="projectnumber">6.0.1</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('tiny__stdlib_8h.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">tiny_stdlib.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p>Tiny portable implementations of standard library functions. <a href="#details">More...</a></p> <div class="textblock"><code>#include <stddef.h></code><br /> </div><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a4cb469bec7b722064b97a406346acb61"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="tiny__stdlib_8h.html#a4cb469bec7b722064b97a406346acb61">memset</a> (void *ptr, int value, size_t num)</td></tr> <tr class="memdesc:a4cb469bec7b722064b97a406346acb61"><td class="mdescLeft"> </td><td class="mdescRight">Fill block of memory. <a href="#a4cb469bec7b722064b97a406346acb61">More...</a><br /></td></tr> <tr class="separator:a4cb469bec7b722064b97a406346acb61"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e7d61eb280250fb55dce370ba1a1709"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="tiny__stdlib_8h.html#a1e7d61eb280250fb55dce370ba1a1709">memcmp</a> (const void *ptr1, const void *ptr2, size_t num)</td></tr> <tr class="memdesc:a1e7d61eb280250fb55dce370ba1a1709"><td class="mdescLeft"> </td><td class="mdescRight">Compare two blocks of memory. <a href="#a1e7d61eb280250fb55dce370ba1a1709">More...</a><br /></td></tr> <tr class="separator:a1e7d61eb280250fb55dce370ba1a1709"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Tiny portable implementations of standard library functions. </p> </div><h2 class="groupheader">Function Documentation</h2> <a id="a1e7d61eb280250fb55dce370ba1a1709"></a> <h2 class="memtitle"><span class="permalink"><a href="#a1e7d61eb280250fb55dce370ba1a1709">◆ </a></span>memcmp()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int memcmp </td> <td>(</td> <td class="paramtype">const void * </td> <td class="paramname"><em>ptr1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const void * </td> <td class="paramname"><em>ptr2</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>num</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Compare two blocks of memory. </p> <p>Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2, returning zero if they all match or a value different from zero representing which is greater if they do not.</p> <p>Notice that, unlike strcmp, the function does not stop comparing after finding a null character.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ptr1</td><td>Pointer to block of memory. </td></tr> <tr><td class="paramname">ptr2</td><td>Pointer to block of memory. </td></tr> <tr><td class="paramname">num</td><td>Number of bytes to compare. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>an integral value indicating the relationship between the content of the memory blocks: </dd></dl> <dl class="retval"><dt>Return values</dt><dd> <table class="retval"> <tr><td class="paramname"><0</td><td>the first byte that does not match in both memory blocks has a lower value in ptr1 than in ptr2 (if evaluated as unsigned char values) </td></tr> <tr><td class="paramname">0</td><td>the contents of both memory blocks are equal </td></tr> <tr><td class="paramname">>0</td><td>the first byte that does not match in both memory blocks has a greater value in ptr1 than in ptr2 (if evaluated as unsigned char values) </td></tr> </table> </dd> </dl> </div> </div> <a id="a4cb469bec7b722064b97a406346acb61"></a> <h2 class="memtitle"><span class="permalink"><a href="#a4cb469bec7b722064b97a406346acb61">◆ </a></span>memset()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void* memset </td> <td>(</td> <td class="paramtype">void * </td> <td class="paramname"><em>ptr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>num</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Fill block of memory. </p> <p>Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char)</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ptr</td><td>Pointer to the block of memory to fill. </td></tr> <tr><td class="paramname">value</td><td>Value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value. </td></tr> <tr><td class="paramname">num</td><td>Number of bytes to be set to the value. size_t is an unsigned integral type. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>ptr is returned. </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- HTML footer for doxygen 1.8.10--> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_12b90d9c027aaf878a834df729679a56.html">epid</a></li><li class="navelem"><a class="el" href="dir_512d3e62841a8535b716ec4cf8b9e950.html">member</a></li><li class="navelem"><a class="el" href="dir_ea12d375fc1eb79df248c0adf953af4f.html">tiny</a></li><li class="navelem"><a class="el" href="dir_a6a596e2b2b50fb0973c7fe0b17a09e5.html">stdlib</a></li><li class="navelem"><a class="el" href="tiny__stdlib_8h.html">tiny_stdlib.h</a></li> <li class="footer"> © 2016-2017 Intel Corporation </li> </ul> </div> </body> </html>