📄 blib.html
字号:
</blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bcopy ( const char * source, /* pointer to source buffer */ char * destination, /* pointer to destination buffer */ int nbytes /* number of bytes to copy */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the first <i>nbytes</i> characters from <i>source</i> to<i>destination</i>. Overlapping buffers are handled correctly. Copying is donein the most efficient way possible, which may include long-word, or evenmultiple-long-word moves on some architectures. In general, the copywill be significantly faster if both buffers are long-word aligned.(For copying that is restricted to byte, word, or long-word moves, seethe manual entries for <b><a href="./bLib.html#bcopyBytes">bcopyBytes</a>( )</b>, <b><a href="./bLib.html#bcopyWords">bcopyWords</a>( )</b>, and <b><a href="./bLib.html#bcopyLongs">bcopyLongs</a>( )</b>.)<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bcopyBytes">bcopyBytes</a>( )</b>, <b><a href="./bLib.html#bcopyWords">bcopyWords</a>( )</b>, <b><a href="./bLib.html#bcopyLongs">bcopyLongs</a>( )</b><hr><a name="bcopyBytes"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>bcopyBytes( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bcopyBytes( )</strong> - copy one buffer to another one byte at a time</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bcopyBytes ( char * source, /* pointer to source buffer */ char * destination, /* pointer to destination buffer */ int nbytes /* number of bytes to copy */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the first <i>nbytes</i> characters from <i>source</i> to<i>destination</i> one byte at a time. This may be desirable if a buffer canonly be accessed with byte instructions, as in certain byte-widememory-mapped peripherals.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bcopy">bcopy</a>( )</b><hr><a name="bcopyWords"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>bcopyWords( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bcopyWords( )</strong> - copy one buffer to another one word at a time</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bcopyWords ( char * source, /* pointer to source buffer */ char * destination, /* pointer to destination buffer */ int nwords /* number of words to copy */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the first <i>nwords</i> words from <i>source</i> to <i>destination</i>one word at a time. This may be desirable if a buffer can only be accessedwith word instructions, as in certain word-wide memory-mapped peripherals.The source and destination must be word-aligned.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bcopy">bcopy</a>( )</b><hr><a name="bcopyLongs"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>bcopyLongs( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bcopyLongs( )</strong> - copy one buffer to another one long word at a time</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bcopyLongs ( char * source, /* pointer to source buffer */ char * destination, /* pointer to destination buffer */ int nlongs /* number of longs to copy */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the first <i>nlongs</i> characters from <i>source</i> to<i>destination</i> one long word at a time. This may be desirable if a buffercan only be accessed with long instructions, as in certain long-word-widememory-mapped peripherals. The source and destination must belong-aligned.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bcopy">bcopy</a>( )</b><hr><a name="bfill"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>bfill( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bfill( )</strong> - fill a buffer with a specified character</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bfill ( char * buf, /* pointer to buffer */ int nbytes, /* number of bytes to fill */ int ch /* char with which to fill buffer */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine fills the first <i>nbytes</i> characters of a buffer with thecharacter <i>ch</i>. Filling is done in the most efficient way possible,which may be long-word, or even multiple-long-word stores, on somearchitectures. In general, the fill will be significantly faster ifthe buffer is long-word aligned. (For filling that is restricted tobyte stores, see the manual entry for <b><a href="./bLib.html#bfillBytes">bfillBytes</a>( )</b>.)<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bfillBytes">bfillBytes</a>( )</b><hr><a name="bfillBytes"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>bfillBytes( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bfillBytes( )</strong> - fill buffer with a specified character one byte at a time</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void bfillBytes ( char * buf, /* pointer to buffer */ int nbytes, /* number of bytes to fill */ int ch /* char with which to fill buffer */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine fills the first <i>nbytes</i> characters of the specified bufferwith the character <i>ch</i> one byte at a time. This may be desirable if abuffer can only be accessed with byte instructions, as in certainbyte-wide memory-mapped peripherals.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./bLib.html#bfill">bfill</a>( )</b><hr><a name="index"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>index( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>index( )</strong> - find the first occurrence of a character in a string</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char *index ( const char * s, /* string in which to find character */ int c /* character to find in string */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine finds the first occurrence of character <i>c</i>in string <i>s</i>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>A pointer to the located character, orNULL if <i>c</i> is not found.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b>, <b><a href="./ansiString.html#strchr">strchr</a>( )</b>.<hr><a name="rindex"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>rindex( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>rindex( )</strong> - find the last occurrence of a character in a string</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char *rindex ( const char * s, /* string in which to find character */ int c /* character to find in string */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine finds the last occurrence of character <i>c</i>in string <i>s</i>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>A pointer to <i>c</i>, orNULL if <i>c</i> is not found.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bLib.html#top">bLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -