Adds kernel docs.

This commit is contained in:
wilkie
2013-03-14 01:31:54 -04:00
commit 8c109b96af
78 changed files with 1800 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>kernel.core.dstubs</title>
</head><body>
<h1>kernel.core.dstubs</h1>
<!-- Generated by Ddoc from ../kernel/runtime/dstubs.d -->
<br><br>
<dl><dt><big>void <u>_d_monitorenter</u>(Object <i>h</i>);
</big></dt>
<dd><br><br>
</dd>
<dt><big>void <u>abort</u>();
</big></dt>
<dd>Random stubs (they'll go somewhere eventually)<br><br>
</dd>
<dt><big>Object <u>_d_toObject</u>(void* <i>p</i>);
</big></dt>
<dd>Given a pointer:
If it is an Object, return that Object.
If it is an interface, return the Object implementing the interface.
If it is <b>null</b>, return <b>null</b>.
Else, undefined crash<br><br>
</dd>
<dt><big>Object <u>_d_interface_cast</u>(void* <i>p</i>, ClassInfo <i>c</i>);
</big></dt>
<dd>Attempts to cast Object o to class <i>c</i>.
Returns o if successful, <b>null</b> if not.<br><br>
</dd>
<dt><big>void* <u>_d_interface_vtbl</u>(ClassInfo <i>ic</i>, Object <i>o</i>);
</big></dt>
<dd>Find the vtbl[] associated with Interface <i>ic</i>.<br><br>
</dd>
<dt><big>void <u>_d_assert</u>(char[] <i>file</i>, uint <i>line</i>);
</big></dt>
<dd>Exception stubs<br><br>
</dd>
</dl>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,28 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>gcc.builtins</title>
</head><body>
<h1>gcc.builtins</h1>
<!-- Generated by Ddoc from ../kernel/runtime/gcc/builtins.d -->
Declarations are automatically created by the compiler. All
declarations start with "_builtin_". Refer to builtins.def in the
GCC source for a list of functions. Not all of the functions are
supported.
<br><br>
In addition to built-in functions, the following types are defined.
<br><br>
<table> <tr><td>__builtin_va_list</td> <td>The target's va_list type </td></tr>
<tr><td>__builtin_Clong </td> <td>The D equivalent of the target's
C "long" type </td></tr>
<tr><td>__builtin_Culong </td> <td>The D equivalent of the target's
C "unsigned long" type </td></tr>
<tr><td>__builtin_machine_int </td> <td>Signed word-sized integer </td></tr>
<tr><td>__builtin_machine_uint</td> <td>Unsigned word-sized integer </td></tr>
<tr><td>__builtin_pointer_int </td> <td>Signed pointer-sized integer </td></tr>
<tr><td>__builtin_pointer_uint</td> <td>Unsigned pointer-sized integer </td></tr>
</table><br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>kernel.runtime.precision</title>
</head><body>
<h1>kernel.runtime.precision</h1>
<!-- Generated by Ddoc from ../kernel/runtime/precision.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,162 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.intrinsic</title>
</head><body>
<h1>std.intrinsic</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/intrinsic.d -->
These functions are built-in intrinsics to the compiler.
<br><br>
Intrinsic functions are functions built in to the compiler,
usually to take advantage of specific CPU features that
are inefficient to handle via external functions.
The compiler's optimizer and code generator are fully
integrated in with <u>intrinsic</u> functions, bringing to bear
their full power on them.
This can result in some surprising speedups.
<br><br>
<dl><dt><big>int <u>bsf</u>(uint <i>v</i>);
</big></dt>
<dd>Scans the bits in <i>v</i> starting with bit 0, looking
for the first set bit.
<br><br>
<b>Returns:</b><br>
The bit number of the first bit set.
The return value is undefined if <i>v</i> is zero.<br><br>
</dd>
<dt><big>int <u>bsr</u>(uint <i>v</i>);
</big></dt>
<dd>Scans the bits in <i>v</i> from the most significant bit
to the least significant bit, looking
for the first set bit.
<br><br>
<b>Returns:</b><br>
The bit number of the first bit set.
The return value is undefined if <i>v</i> is zero.
<br><br>
<b>Example:</b><br>
<pre class="d_code"> <font color=blue>import</font> std.intrinsic;
<font color=blue>int</font> main()
{
<font color=blue>uint</font> <i>v</i>;
<font color=blue>int</font> x;
<i>v</i> = 0x21;
x = bsf(<i>v</i>);
printf(<font color=red>"bsf(x%x) = %d\n"</font>, <i>v</i>, x);
x = <u>bsr</u>(<i>v</i>);
printf(<font color=red>"bsr(x%x) = %d\n"</font>, <i>v</i>, x);
<font color=blue>return</font> 0;
}
</pre>
<br><br>
<b>Output:</b><br>
bsf(x21) = 0<br>
<u>bsr</u>(x21) = 5<br><br>
</dd>
<dt><big>int <u>bt</u>(uint* <i>p</i>, uint <i>bitnum</i>);
</big></dt>
<dd>Tests the bit.<br><br>
</dd>
<dt><big>int <u>btc</u>(uint* <i>p</i>, uint <i>bitnum</i>);
</big></dt>
<dd>Tests and complements the bit.<br><br>
</dd>
<dt><big>int <u>btr</u>(uint* <i>p</i>, uint <i>bitnum</i>);
</big></dt>
<dd>Tests and resets (sets to 0) the bit.<br><br>
</dd>
<dt><big>int <u>bts</u>(uint* <i>p</i>, uint <i>bitnum</i>);
</big></dt>
<dd>Tests and sets the bit.
<br><br>
<b>Params:</b><br>
<table><tr><td>uint* <i>p</i></td>
<td>a non-NULL pointer to an array of uints.</td></tr>
<tr><td>index</td>
<td>a bit number, starting with bit 0 of <i>p</i>[0],
and progressing. It addresses bits like the expression:
<pre class="d_code"><i>p</i>[index / (<font color=blue>uint</font>.sizeof*8)] &amp; (1 &lt;&lt; (index &amp; ((<font color=blue>uint</font>.sizeof*8) - 1)))
</pre>
</td></tr>
</table><br>
<b>Returns:</b><br>
A non-zero value if the bit was set, and a zero
if it was clear.
<br><br>
<b>Example:</b><br>
<pre class="d_code"><font color=blue>import</font> std.intrinsic;
<font color=blue>int</font> main()
{
<font color=blue>uint</font> array[2];
array[0] = 2;
array[1] = 0x100;
printf(<font color=red>"btc(array, 35) = %d\n"</font>, &lt;b&gt;btc&lt;/b&gt;(array, 35));
printf(<font color=red>"array = [0]:x%x, [1]:x%x\n"</font>, array[0], array[1]);
printf(<font color=red>"btc(array, 35) = %d\n"</font>, &lt;b&gt;btc&lt;/b&gt;(array, 35));
printf(<font color=red>"array = [0]:x%x, [1]:x%x\n"</font>, array[0], array[1]);
printf(<font color=red>"bts(array, 35) = %d\n"</font>, &lt;b&gt;<u>bts</u>&lt;/b&gt;(array, 35));
printf(<font color=red>"array = [0]:x%x, [1]:x%x\n"</font>, array[0], array[1]);
printf(<font color=red>"btr(array, 35) = %d\n"</font>, &lt;b&gt;btr&lt;/b&gt;(array, 35));
printf(<font color=red>"array = [0]:x%x, [1]:x%x\n"</font>, array[0], array[1]);
printf(<font color=red>"bt(array, 1) = %d\n"</font>, &lt;b&gt;bt&lt;/b&gt;(array, 1));
printf(<font color=red>"array = [0]:x%x, [1]:x%x\n"</font>, array[0], array[1]);
<font color=blue>return</font> 0;
}
</pre>
<br><br>
<b>Output:</b><br>
<pre>
btc(array, 35) = 0
array = [0]:x2, [1]:x108
btc(array, 35) = -1
array = [0]:x2, [1]:x100
<u>bts</u>(array, 35) = 0
array = [0]:x2, [1]:x108
btr(array, 35) = -1
array = [0]:x2, [1]:x100
bt(array, 1) = -1
array = [0]:x2, [1]:x100
</pre><br><br>
</dd>
<dt><big>uint <u>bswap</u>(uint <i>v</i>);
</big></dt>
<dd>Swaps bytes in a 4 byte uint end-to-end, i.e. byte 0 becomes
byte 3, byte 1 becomes byte 2, byte 2 becomes byte 1, byte 3
becomes byte 0.<br><br>
</dd>
<dt><big>ubyte <u>inp</u>(uint <i>port_address</i>);
<br>ushort <u>inpw</u>(uint <i>port_address</i>);
<br>uint <u>inpl</u>(uint <i>port_address</i>);
</big></dt>
<dd>Reads I/O port at <i>port_address</i>.<br><br>
</dd>
<dt><big>ubyte <u>outp</u>(uint <i>port_address</i>, ubyte <i>value</i>);
<br>ushort <u>outpw</u>(uint <i>port_address</i>, ushort <i>value</i>);
<br>uint <u>outpl</u>(uint <i>port_address</i>, uint <i>value</i>);
</big></dt>
<dd>Writes and returns <i>value</i> to I/O port at <i>port_address</i>.<br><br>
</dd>
</dl>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,31 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.moduleinit</title>
</head><body>
<h1>std.moduleinit</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/moduleinit.d -->
<br><br>
<dl><dt><big>void <u>_moduleCtor</u>();
</big></dt>
<dd>Initialize the modules.<br><br>
</dd>
<dt><big>void <u>_moduleDtor</u>();
</big></dt>
<dd>Destruct the modules.<br><br>
</dd>
<dt><big>void <u>_moduleUnitTests</u>();
</big></dt>
<dd>Run unit tests.<br><br>
</dd>
<dt><big>void <u>_moduleIndependentCtors</u>();
</big></dt>
<dd>Run unit tests.<br><br>
</dd>
</dl>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_AC</title>
</head><body>
<h1>std.typeinfo.ti_AC</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_AC.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_Ag</title>
</head><body>
<h1>std.typeinfo.ti_Ag</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_Ag.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_Aint</title>
</head><body>
<h1>std.typeinfo.ti_Aint</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_Aint.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_Along</title>
</head><body>
<h1>std.typeinfo.ti_Along</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_Along.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_Ashort</title>
</head><body>
<h1>std.typeinfo.ti_Ashort</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_Ashort.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_C</title>
</head><body>
<h1>std.typeinfo.ti_C</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_C.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_byte</title>
</head><body>
<h1>std.typeinfo.ti_byte</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_byte.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_cdouble</title>
</head><body>
<h1>std.typeinfo.ti_cdouble</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_cdouble.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_cfloat</title>
</head><body>
<h1>std.typeinfo.ti_cfloat</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_cfloat.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_char</title>
</head><body>
<h1>std.typeinfo.ti_char</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_char.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_creal</title>
</head><body>
<h1>std.typeinfo.ti_creal</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_creal.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_dchar</title>
</head><body>
<h1>std.typeinfo.ti_dchar</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_dchar.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_delegate</title>
</head><body>
<h1>std.typeinfo.ti_delegate</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_delegate.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_double</title>
</head><body>
<h1>std.typeinfo.ti_double</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_double.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_float</title>
</head><body>
<h1>std.typeinfo.ti_float</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_float.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_int</title>
</head><body>
<h1>std.typeinfo.ti_int</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_int.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_long</title>
</head><body>
<h1>std.typeinfo.ti_long</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_long.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_ptr</title>
</head><body>
<h1>std.typeinfo.ti_ptr</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_ptr.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_real</title>
</head><body>
<h1>std.typeinfo.ti_real</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_real.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_short</title>
</head><body>
<h1>std.typeinfo.ti_short</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_short.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_ubyte</title>
</head><body>
<h1>std.typeinfo.ti_ubyte</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_ubyte.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_uint</title>
</head><body>
<h1>std.typeinfo.ti_uint</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_uint.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_ulong</title>
</head><body>
<h1>std.typeinfo.ti_ulong</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_ulong.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_ushort</title>
</head><body>
<h1>std.typeinfo.ti_ushort</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_ushort.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_void</title>
</head><body>
<h1>std.typeinfo.ti_void</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_void.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

View File

@@ -0,0 +1,10 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>std.typeinfo.ti_wchar</title>
</head><body>
<h1>std.typeinfo.ti_wchar</h1>
<!-- Generated by Ddoc from ../kernel/runtime/std/typeinfo/ti_wchar.d -->
<br><br>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>

116
kernel/runtime/util.html Normal file
View File

@@ -0,0 +1,116 @@
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>kernel.runtime.util</title>
</head><body>
<h1>kernel.runtime.util</h1>
<!-- Generated by Ddoc from ../kernel/runtime/util.d -->
<br><br>
<dl><dt><big>char[] <u>itoa</u>(char[] <i>buf</i>, char <i>base</i>, long <i>d</i>);
</big></dt>
<dd>This function converts an integer to a string, depending on the <i>base</i> passed in.
<br><br>
<b>Params:</b><br>
<table><tr><td>char[] <i>buf</i></td>
<td>The function will save the translated string into this character array.</td></tr>
<tr><td>char <i>base</i></td>
<td>The <i>base</i> of the integer value. If "<i>d</i>," it will be assumed to be decimal. If "x," the integer
will be hexadecimal.</td></tr>
<tr><td>long <i>d</i></td>
<td>The integer to translate.</td></tr>
</table><br>
<b>Returns:</b><br>
The translated string in a character array.<br><br>
</dd>
<dt><big>void* <u>memcpy</u>(void* <i>dest</i>, void* <i>src</i>, size_t <i>count</i>);
</big></dt>
<dd>This function copies data from a source piece of memory to a destination piece of memory.
<br><br>
<b>Params:</b><br>
<table><tr><td>void* <i>dest</i></td>
<td>A pointer to the piece of memory serving as the copy destination.</td></tr>
<tr><td>void* <i>src</i></td>
<td>A pointer to the piece of memory serving as the copy source.</td></tr>
<tr><td>size_t <i>count</i></td>
<td>The number of bytes to copy form <i>src</i> to <i>dest</i>.</td></tr>
</table><br>
<b>Returns:</b><br>
A void pointer to the start of the destination data (<i>dest</i>).<br><br>
</dd>
<dt><big>void* <u>memmove</u>(void* <i>dest</i>, void* <i>src</i>, size_t <i>count</i>);
</big></dt>
<dd>Memcpy and <u>memmove</u> only really have differences at the user level, where they have slightly
different semantics. Here, they're the same.<br><br>
</dd>
<dt><big>int <u>memcmp</u>(void* <i>a</i>, void* <i>b</i>, size_t <i>n</i>);
</big></dt>
<dd>Compare two blocks of memory.
<br><br>
<b>Params:</b><br>
<table><tr><td>void* <i>a</i></td>
<td>Pointer to the first block.</td></tr>
<tr><td>void* <i>b</i></td>
<td>Pointer to the second block.</td></tr>
<tr><td>size_t <i>n</i></td>
<td>The number of bytes to compare.</td></tr>
</table><br>
<b>Returns:</b><br>
0 if they are equal, &lt; 0 if <i>a</i> is less than <i>b</i>, and &gt; 0 if <i>a</i> is greater than <i>b</i>.<br><br>
</dd>
<dt><big>void <u>memset</u>(void* <i>addr</i>, int <i>val</i>, uint <i>numBytes</i>);
</big></dt>
<dd>This function sets a particular piece of memory to a particular value.
<br><br>
<b>Params:</b><br>
<table><tr><td>void* <i>addr</i></td>
<td>The address of the piece of memory you wish to write.</td></tr>
<tr><td>int <i>val</i></td>
<td>The value you wish to write to memory.</td></tr>
<tr><td>uint <i>numBytes</i></td>
<td>The number of bytes you would like to write to memory.</td></tr>
</table><br>
</dd>
<dt><big>size_t <u>strlen</u>(char* <i>s</i>);
</big></dt>
<dd>This function determines the size of a passed-in string.
<br><br>
<b>Params:</b><br>
<table><tr><td>char* <i>s</i></td>
<td>A pointer to the beginning of a character array, declaring a string.</td></tr>
</table><br>
<b>Returns:</b><br>
The size of the string in size_t format.<br><br>
</dd>
<dt><big>char[] <u>toString</u>(char* <i>s</i>);
</big></dt>
<dd>This function takes in a character pointer and returns a character array, or a string.
<br><br>
<b>Params:</b><br>
<table><tr><td>char* <i>s</i></td>
<td>A pointer to the character(<i>s</i>) you wish to translate to a string.</td></tr>
</table><br>
<b>Returns:</b><br>
A character array (string) containing the information.<br><br>
</dd>
<dt><big>int <u>isnan</u>(real <i>e</i>);
</big></dt>
<dd>This function checks to see if a floating point number is a NaN.
<br><br>
<b>Params:</b><br>
<table><tr><td>real <i>e</i></td>
<td>The value / piece of information you would like to check for number status.</td></tr>
</table><br>
<b>Returns:</b><br>
0 if it isn't a NaN, non-zero if it is.<br><br>
</dd>
</dl>
<hr><small>Page generated by <a href="http://www.digitalmars.com/d/1.0/ddoc.html">Ddoc</a>. </small>
</body></html>