📄 ansistdlib.html
字号:
<a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>div</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>div</i>( )</strong> - compute a quotient and remainder (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>div_t div ( int numer, /* numerator */ int denom /* denominator */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the quotient and remainder of <i>numer</i>/<i>denom</i>.If the division is inexact, the resulting quotient is the integer of lessermagnitude that is the nearest to the algebraic quotient. If the result cannotbe represented, the behavior is undefined; otherwise, <b>quot</b> * <i>denom</i> + <b>rem</b>equals <i>numer</i>.<p>This routine is not reentrant. For a reentrant version, see <b><i><a href="./ansiStdlib.html#div_r">div_r</a></i>( )</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p><p>A structure of type <b>div_t</b>, containing both the quotient and the remainder. <p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="div_r"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>div_r</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>div_r</i>( )</strong> - compute a quotient and remainder (reentrant)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void div_r ( int numer, /* numerator */ int denom, /* denominator */ div_t * divStructPtr /* div_t structure */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the quotient and remainder of <i>numer</i>/<i>denom</i>.The quotient and remainder are stored in the <b>div_t</b> structurepointed to by <i>divStructPtr</i>.<p>This routine is the reentrant version of <b><i><a href="./ansiStdlib.html#div">div</a></i>( )</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="labs"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>labs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>labs</i>( )</strong> - compute the absolute value of a <b>long</b> (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>long labs ( long i /* long for which to return absolute value */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the absolute value of a specified <b>long</b>. If theresult cannot be represented, the behavior is undefined. This routine isequivalent to <b><i><a href="./ansiStdlib.html#abs">abs</a></i>( )</b>, except that the argument and return value are all oftype <b>long</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>The absolute value of <i>i</i>.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="ldiv"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ldiv</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ldiv</i>( )</strong> - compute the quotient and remainder of the division (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>ldiv_t ldiv ( long numer, /* numerator */ long denom /* denominator */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the quotient and remainder of <i>numer</i>/<i>denom</i>.This routine is similar to <b><i><a href="./ansiStdlib.html#div">div</a></i>( )</b>, except that the arguments and theelements of the returned structure are all of type <b>long</b>.<p>This routine is not reentrant. For a reentrant version, see <b><i><a href="./ansiStdlib.html#ldiv_r">ldiv_r</a></i>( )</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p><p>A structure of type <b>ldiv_t</b>, containing both the quotient and the remainder.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="ldiv_r"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>ldiv_r</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>ldiv_r</i>( )</strong> - compute a quotient and remainder (reentrant)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ldiv_r ( long numer, /* numerator */ long denom, /* denominator */ ldiv_t * divStructPtr /* ldiv_t structure */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine computes the quotient and remainder of <i>numer</i>/<i>denom</i>.The quotient and remainder are stored in the <b>ldiv_t</b> structure<b>divStructPtr</b>.<p>This routine is the reentrant version of <b><i><a href="./ansiStdlib.html#ldiv">ldiv</a></i>( )</b>.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="mblen"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>mblen</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>mblen</i>( )</strong> - calculate the length of a multibyte character (Unimplemented) (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int mblen ( const char * s, size_t n )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This multibyte character function is unimplemented in VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="mbtowc"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>mbtowc</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>mbtowc</i>( )</strong> - convert a multibyte character to a wide character (Unimplemented) (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int mbtowc ( wchar_t * pwc, const char * s, size_t n )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This multibyte character function is unimplemented in VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="wctomb"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>wctomb</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>wctomb</i>( )</strong> - convert a wide character to a multibyte character (Unimplemented) (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int wctomb ( char * s, wchar_t wchar )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This multibyte character function is unimplemented in VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="mbstowcs"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>mbstowcs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>mbstowcs</i>( )</strong> - convert a series of multibyte char's to wide char's (Unimplemented) (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>size_t mbstowcs ( wchar_t * pwcs, const char * s, size_t n )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This multibyte character function is unimplemented in VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="wcstombs"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>wcstombs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>wcstombs</i>( )</strong> - convert a series of wide char's to multibyte char's (Unimplemented) (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>size_t wcstombs ( char * s, const wchar_t * pwcs, size_t n )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This multibyte character function is unimplemented in VxWorks.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>stdlib.h</b> <p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the parameters are invalid.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ansiStdlib.html#top">ansiStdlib</a></b><hr><a name="qsort"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>qsort</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>qsort</i>( )</strong> - sort an array of objects (ANSI)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void qsort ( void * bot, /* initial element in array */ size_t nmemb, /* no. of objects in array */ size_t size, /* size of array element */ int (* compar) (const void * , const void * ) /* comparison function */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sorts an array of <i>nmemb</i> objects, the initial element ofwhich is pointed to by <i>bot</i>. The size of each object is specified by<i>size</i>.<p>The contents of the array are sorted into ascending order according to acomparison function pointed to by <i>compar</i>, which is called with twoarguments that point to the objects being compared. The function shallreturn an integer less than, equal to, or greater than zero if the firstargument is considered to be respectively less than, equal to, or greaterthan the second.<p>If two elements compare as equal, their order in the sorted array is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -