• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- HTML header for doxygen 1.8.10-->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<meta http-equiv="X-UA-Compatible" content="IE=9"/>
7<meta name="generator" content="Doxygen 1.8.14"/>
8<title>Intel&reg; Enhanced Privacy ID SDK: epid/member/tiny/stdlib/tiny_stdlib.h 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="navtree.css" rel="stylesheet" type="text/css"/>
13<script type="text/javascript" src="resize.js"></script>
14<script type="text/javascript" src="navtreedata.js"></script>
15<script type="text/javascript" src="navtree.js"></script>
16<script type="text/javascript">
17/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
18  $(document).ready(initResizable);
19/* @license-end */</script>
20<link href="doxygen.css" rel="stylesheet" type="text/css" />
21<link href="epidstyle.css" rel="stylesheet" type="text/css"/>
22</head>
23<body>
24<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
25<div id="titlearea">
26<table cellspacing="0" cellpadding="0">
27 <tbody>
28 <tr style="height: 56px;">
29  <td id="projectalign" style="padding-left: 0.5em;">
30   <div id="projectname"><a
31                            onclick="storeLink('index.html')"
32                            id="projectlink"
33                            class="index.html"
34                            href="index.html">Intel&reg; Enhanced Privacy ID SDK</a>
35&#160;<span id="projectnumber">6.0.1</span>
36</div>
37  </td>
38 </tr>
39 </tbody>
40</table>
41</div>
42<!-- end header part -->
43<!-- Generated by Doxygen 1.8.14 -->
44</div><!-- top -->
45<div id="side-nav" class="ui-resizable side-nav-resizable">
46  <div id="nav-tree">
47    <div id="nav-tree-contents">
48      <div id="nav-sync" class="sync"></div>
49    </div>
50  </div>
51  <div id="splitbar" style="-moz-user-select:none;"
52       class="ui-resizable-handle">
53  </div>
54</div>
55<script type="text/javascript">
56/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
57$(document).ready(function(){initNavTree('tiny__stdlib_8h.html','');});
58/* @license-end */
59</script>
60<div id="doc-content">
61<div class="header">
62  <div class="summary">
63<a href="#func-members">Functions</a>  </div>
64  <div class="headertitle">
65<div class="title">tiny_stdlib.h File Reference</div>  </div>
66</div><!--header-->
67<div class="contents">
68
69<p>Tiny portable implementations of standard library functions.
70<a href="#details">More...</a></p>
71<div class="textblock"><code>#include &lt;stddef.h&gt;</code><br />
72</div><table class="memberdecls">
73<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
74Functions</h2></td></tr>
75<tr class="memitem:a4cb469bec7b722064b97a406346acb61"><td class="memItemLeft" align="right" valign="top">void *&#160;</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>
76<tr class="memdesc:a4cb469bec7b722064b97a406346acb61"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fill block of memory.  <a href="#a4cb469bec7b722064b97a406346acb61">More...</a><br /></td></tr>
77<tr class="separator:a4cb469bec7b722064b97a406346acb61"><td class="memSeparator" colspan="2">&#160;</td></tr>
78<tr class="memitem:a1e7d61eb280250fb55dce370ba1a1709"><td class="memItemLeft" align="right" valign="top">int&#160;</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>
79<tr class="memdesc:a1e7d61eb280250fb55dce370ba1a1709"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two blocks of memory.  <a href="#a1e7d61eb280250fb55dce370ba1a1709">More...</a><br /></td></tr>
80<tr class="separator:a1e7d61eb280250fb55dce370ba1a1709"><td class="memSeparator" colspan="2">&#160;</td></tr>
81</table>
82<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
83<div class="textblock"><p>Tiny portable implementations of standard library functions. </p>
84</div><h2 class="groupheader">Function Documentation</h2>
85<a id="a1e7d61eb280250fb55dce370ba1a1709"></a>
86<h2 class="memtitle"><span class="permalink"><a href="#a1e7d61eb280250fb55dce370ba1a1709">&#9670;&nbsp;</a></span>memcmp()</h2>
87
88<div class="memitem">
89<div class="memproto">
90      <table class="memname">
91        <tr>
92          <td class="memname">int memcmp </td>
93          <td>(</td>
94          <td class="paramtype">const void *&#160;</td>
95          <td class="paramname"><em>ptr1</em>, </td>
96        </tr>
97        <tr>
98          <td class="paramkey"></td>
99          <td></td>
100          <td class="paramtype">const void *&#160;</td>
101          <td class="paramname"><em>ptr2</em>, </td>
102        </tr>
103        <tr>
104          <td class="paramkey"></td>
105          <td></td>
106          <td class="paramtype">size_t&#160;</td>
107          <td class="paramname"><em>num</em>&#160;</td>
108        </tr>
109        <tr>
110          <td></td>
111          <td>)</td>
112          <td></td><td></td>
113        </tr>
114      </table>
115</div><div class="memdoc">
116
117<p>Compare two blocks of memory. </p>
118<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>
119<p>Notice that, unlike strcmp, the function does not stop comparing after finding a null character.</p>
120<dl class="params"><dt>Parameters</dt><dd>
121  <table class="params">
122    <tr><td class="paramname">ptr1</td><td>Pointer to block of memory. </td></tr>
123    <tr><td class="paramname">ptr2</td><td>Pointer to block of memory. </td></tr>
124    <tr><td class="paramname">num</td><td>Number of bytes to compare. </td></tr>
125  </table>
126  </dd>
127</dl>
128<dl class="section return"><dt>Returns</dt><dd>an integral value indicating the relationship between the content of the memory blocks: </dd></dl>
129<dl class="retval"><dt>Return values</dt><dd>
130  <table class="retval">
131    <tr><td class="paramname">&lt;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>
132    <tr><td class="paramname">0</td><td>the contents of both memory blocks are equal </td></tr>
133    <tr><td class="paramname">&gt;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>
134  </table>
135  </dd>
136</dl>
137
138</div>
139</div>
140<a id="a4cb469bec7b722064b97a406346acb61"></a>
141<h2 class="memtitle"><span class="permalink"><a href="#a4cb469bec7b722064b97a406346acb61">&#9670;&nbsp;</a></span>memset()</h2>
142
143<div class="memitem">
144<div class="memproto">
145      <table class="memname">
146        <tr>
147          <td class="memname">void* memset </td>
148          <td>(</td>
149          <td class="paramtype">void *&#160;</td>
150          <td class="paramname"><em>ptr</em>, </td>
151        </tr>
152        <tr>
153          <td class="paramkey"></td>
154          <td></td>
155          <td class="paramtype">int&#160;</td>
156          <td class="paramname"><em>value</em>, </td>
157        </tr>
158        <tr>
159          <td class="paramkey"></td>
160          <td></td>
161          <td class="paramtype">size_t&#160;</td>
162          <td class="paramname"><em>num</em>&#160;</td>
163        </tr>
164        <tr>
165          <td></td>
166          <td>)</td>
167          <td></td><td></td>
168        </tr>
169      </table>
170</div><div class="memdoc">
171
172<p>Fill block of memory. </p>
173<p>Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char)</p>
174<dl class="params"><dt>Parameters</dt><dd>
175  <table class="params">
176    <tr><td class="paramname">ptr</td><td>Pointer to the block of memory to fill. </td></tr>
177    <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>
178    <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>
179  </table>
180  </dd>
181</dl>
182<dl class="section return"><dt>Returns</dt><dd>ptr is returned. </dd></dl>
183
184</div>
185</div>
186</div><!-- contents -->
187</div><!-- doc-content -->
188<!-- HTML footer for doxygen 1.8.10-->
189<!-- start footer part -->
190<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
191  <ul>
192    <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>
193    <li class="footer">
194      &copy; 2016-2017 Intel Corporation
195    </li>
196  </ul>
197</div>
198</body>
199</html>
200