亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? library_18.html

?? Glibc的中文手冊
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
which is <CODE>6.5</CODE> minus <CODE>6.9</CODE>.
<P>
The absolute value of the result is less than or equal to half the
absolute value of the <VAR>denominator</VAR>.  The difference between
<CODE>fmod (<VAR>numerator</VAR>, <VAR>denominator</VAR>)</CODE> and <CODE>drem
(<VAR>numerator</VAR>, <VAR>denominator</VAR>)</CODE> is always either
<VAR>denominator</VAR>, minus <VAR>denominator</VAR>, or zero.
<P>
If <VAR>denominator</VAR> is zero, <CODE>drem</CODE> fails and sets <CODE>errno</CODE> to
<CODE>EDOM</CODE>.
<P>
<A NAME="IDX1327"></A>
<H2><A NAME="SEC305" HREF="library_toc.html#SEC305" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC305">Integer Division</A></H2>
<P>
This section describes functions for performing integer division.  These
functions are redundant in the GNU C library, since in GNU C the <SAMP>`/'</SAMP>
operator always rounds towards zero.  But in other C implementations,
<SAMP>`/'</SAMP> may round differently with negative arguments.  <CODE>div</CODE> and
<CODE>ldiv</CODE> are useful because they specify how to round the quotient:
towards zero.  The remainder has the same sign as the numerator.
<P>
These functions are specified to return a result <VAR>r</VAR> such that
<CODE><VAR>r</VAR>.quot*<VAR>denominator</VAR> + <VAR>r</VAR>.rem</CODE> equals
<VAR>numerator</VAR>.
<A NAME="IDX1328"></A>
<P>
To use these facilities, you should include the header file
<TT>`stdlib.h'</TT> in your program.
<P>
<A NAME="IDX1329"></A>
<U>Data Type:</U> <B>div_t</B><P>
This is a structure type used to hold the result returned by the <CODE>div</CODE>
function.  It has the following members:
<P>
<DL COMPACT>
<DT><CODE>int quot</CODE>
<DD>The quotient from the division.
<P>
<DT><CODE>int rem</CODE>
<DD>The remainder from the division.
</DL>
<P>
<A NAME="IDX1330"></A>
<U>Function:</U> div_t <B>div</B> <I>(int <VAR>numerator</VAR>, int <VAR>denominator</VAR>)</I><P>
This function <CODE>div</CODE> computes the quotient and remainder from
the division of <VAR>numerator</VAR> by <VAR>denominator</VAR>, returning the
result in a structure of type <CODE>div_t</CODE>.
<P>
If the result cannot be represented (as in a division by zero), the
behavior is undefined.
<P>
Here is an example, albeit not a very useful one.
<P>
<PRE>
div_t result;
result = div (20, -6);
</PRE>
<P>
Now <CODE>result.quot</CODE> is <CODE>-3</CODE> and <CODE>result.rem</CODE> is <CODE>2</CODE>.
<P>
<A NAME="IDX1331"></A>
<U>Data Type:</U> <B>ldiv_t</B><P>
This is a structure type used to hold the result returned by the <CODE>ldiv</CODE>
function.  It has the following members:
<P>
<DL COMPACT>
<DT><CODE>long int quot</CODE>
<DD>The quotient from the division.
<P>
<DT><CODE>long int rem</CODE>
<DD>The remainder from the division.
</DL>
<P>
(This is identical to <CODE>div_t</CODE> except that the components are of
type <CODE>long int</CODE> rather than <CODE>int</CODE>.)
<P>
<A NAME="IDX1332"></A>
<U>Function:</U> ldiv_t <B>ldiv</B> <I>(long int <VAR>numerator</VAR>, long int <VAR>denominator</VAR>)</I><P>
The <CODE>ldiv</CODE> function is similar to <CODE>div</CODE>, except that the
arguments are of type <CODE>long int</CODE> and the result is returned as a
structure of type <CODE>ldiv</CODE>.
<P>
<A NAME="IDX1333"></A>
<A NAME="IDX1334"></A>
<A NAME="IDX1335"></A>
<A NAME="IDX1336"></A>
<H2><A NAME="SEC306" HREF="library_toc.html#SEC306" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC306">Parsing of Numbers</A></H2>
<P>
This section describes functions for "reading" integer and
floating-point numbers from a string.  It may be more convenient in some
cases to use <CODE>sscanf</CODE> or one of the related functions; see
section <A HREF="library_11.html#SEC145" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_11.html#SEC145">Formatted Input</A>.  But often you can make a program more robust by
finding the tokens in the string by hand, then converting the numbers
one by one.
<P>
<H3><A NAME="SEC307" HREF="library_toc.html#SEC307" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC307">Parsing of Integers</A></H3>
<A NAME="IDX1337"></A>
<P>
These functions are declared in <TT>`stdlib.h'</TT>.
<P>
<A NAME="IDX1338"></A>
<U>Function:</U> long int <B>strtol</B> <I>(const char *<VAR>string</VAR>, char **<VAR>tailptr</VAR>, int <VAR>base</VAR>)</I><P>
The <CODE>strtol</CODE> ("string-to-long") function converts the initial
part of <VAR>string</VAR> to a signed integer, which is returned as a value
of type <CODE>long int</CODE>.  
<P>
This function attempts to decompose <VAR>string</VAR> as follows:
<P>
<UL>
<LI>
A (possibly empty) sequence of whitespace characters.  Which characters
are whitespace is determined by the <CODE>isspace</CODE> function
(see section <A HREF="library_4.html#SEC55" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_4.html#SEC55">Classification of Characters</A>).  These are discarded.
<P>
<LI>
An optional plus or minus sign (<SAMP>`+'</SAMP> or <SAMP>`-'</SAMP>).
<P>
<LI>
A nonempty sequence of digits in the radix specified by <VAR>base</VAR>.
<P>
If <VAR>base</VAR> is zero, decimal radix is assumed unless the series of
digits begins with <SAMP>`0'</SAMP> (specifying octal radix), or <SAMP>`0x'</SAMP> or
<SAMP>`0X'</SAMP> (specifying hexadecimal radix); in other words, the same
syntax used for integer constants in C.
<P>
Otherwise <VAR>base</VAR> must have a value between <CODE>2</CODE> and <CODE>35</CODE>.
If <VAR>base</VAR> is <CODE>16</CODE>, the digits may optionally be preceeded by
<SAMP>`0x'</SAMP> or <SAMP>`0X'</SAMP>.
<P>
<LI>
Any remaining characters in the string.  If <VAR>tailptr</VAR> is not a null
pointer, <CODE>strtol</CODE> stores a pointer to this tail in
<CODE>*<VAR>tailptr</VAR></CODE>.
</UL>
<P>
If the string is empty, contains only whitespace, or does not contain an
initial substring that has the expected syntax for an integer in the
specified <VAR>base</VAR>, no conversion is performed.  In this case,
<CODE>strtol</CODE> returns a value of zero and the value stored in
<CODE>*<VAR>tailptr</VAR></CODE> is the value of <VAR>string</VAR>.
<P>
In a locale other than the standard <CODE>"C"</CODE> locale, this function
may recognize additional implementation-dependent syntax.
<P>
If the string has valid syntax for an integer but the value is not
representable because of overflow, <CODE>strtol</CODE> returns either
<CODE>LONG_MAX</CODE> or <CODE>LONG_MIN</CODE> (see section <A HREF="library_28.html#SEC486" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_28.html#SEC486">Range of an Integer Type</A>), as
appropriate for the sign of the value.  It also sets <CODE>errno</CODE>
to <CODE>ERANGE</CODE> to indicate there was overflow.
<P>
There is an example at the end of this section.
<P>
<A NAME="IDX1339"></A>
<U>Function:</U> unsigned long int <B>strtoul</B> <I>(const char *<VAR>string</VAR>, char **<VAR>tailptr</VAR>, int <VAR>base</VAR>)</I><P>
The <CODE>strtoul</CODE> ("string-to-unsigned-long") function is like
<CODE>strtol</CODE> except that it returns its value with type <CODE>unsigned
long int</CODE>.  The value returned in case of overflow is <CODE>ULONG_MAX</CODE>
(see section <A HREF="library_28.html#SEC486" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_28.html#SEC486">Range of an Integer Type</A>).
<P>
<A NAME="IDX1340"></A>
<U>Function:</U> long int <B>atol</B> <I>(const char *<VAR>string</VAR>)</I><P>
This function is similar to the <CODE>strtol</CODE> function with a <VAR>base</VAR>
argument of <CODE>10</CODE>, except that it need not detect overflow errors.
The <CODE>atol</CODE> function is provided mostly for compatibility with
existing code; using <CODE>strtol</CODE> is more robust.
<P>
<A NAME="IDX1341"></A>
<U>Function:</U> int <B>atoi</B> <I>(const char *<VAR>string</VAR>)</I><P>
This function is like <CODE>atol</CODE>, except that it returns an <CODE>int</CODE>
value rather than <CODE>long int</CODE>.  The <CODE>atoi</CODE> function is also
considered obsolete; use <CODE>strtol</CODE> instead.
<P>
Here is a function which parses a string as a sequence of integers and
returns the sum of them:
<P>
<PRE>
sum_ints_from_string (char *string)
{
  int sum = 0;

  while (1) {
    char *tail;
    int next;

    /* Skip whitespace by hand, to detect the end.  */
    while (isspace (*string)) string++;
    if (*string == 0)
      break;

    /* There is more nonwhitespace,  */
    /* so it ought to be another number.  */
    errno = 0;
    /* Parse it.  */
    next = strtol (string, &#38;tail, 0);
    /* Add it in, if not overflow.  */
    if (errno)
      printf ("Overflow\n");
    else
      sum += next;
    /* Advance past it.  */
    string = tail;
  }

  return sum;
}
</PRE>
<P>
<H3><A NAME="SEC308" HREF="library_toc.html#SEC308" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_toc.html#SEC308">Parsing of Floats</A></H3>
<A NAME="IDX1342"></A>
<P>
These functions are declared in <TT>`stdlib.h'</TT>.
<P>
<A NAME="IDX1343"></A>
<U>Function:</U> double <B>strtod</B> <I>(const char *<VAR>string</VAR>, char **<VAR>tailptr</VAR>)</I><P>
The <CODE>strtod</CODE> ("string-to-double") function converts the initial
part of <VAR>string</VAR> to a floating-point number, which is returned as a
value of type <CODE>double</CODE>.  
<P>
This function attempts to decompose <VAR>string</VAR> as follows:
<P>
<UL>
<LI>
A (possibly empty) sequence of whitespace characters.  Which characters
are whitespace is determined by the <CODE>isspace</CODE> function
(see section <A HREF="library_4.html#SEC55" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_4.html#SEC55">Classification of Characters</A>).  These are discarded.
<P>
<LI>
An optional plus or minus sign (<SAMP>`+'</SAMP> or <SAMP>`-'</SAMP>).
<P>
<LI>
A nonempty sequence of digits optionally containing a decimal-point
character--normally <SAMP>`.'</SAMP>, but it depends on the locale
(see section <A HREF="library_7.html#SEC82" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_7.html#SEC82">Numeric Formatting</A>).
<P>
<LI>
An optional exponent part, consisting of a character <SAMP>`e'</SAMP> or
<SAMP>`E'</SAMP>, an optional sign, and a sequence of digits.
<P>
<LI>
Any remaining characters in the string.  If <VAR>tailptr</VAR> is not a null
pointer, a pointer to this tail of the string is stored in
<CODE>*<VAR>tailptr</VAR></CODE>.
</UL>
<P>
If the string is empty, contains only whitespace, or does not contain an
initial substring that has the expected syntax for a floating-point
number, no conversion is performed.  In this case, <CODE>strtod</CODE> returns
a value of zero and the value returned in <CODE>*<VAR>tailptr</VAR></CODE> is the
value of <VAR>string</VAR>.
<P>
In a locale other than the standard <CODE>"C"</CODE> locale, this function may
recognize additional locale-dependent syntax.
<P>
If the string has valid syntax for a floating-point number but the value
is not representable because of overflow, <CODE>strtod</CODE> returns either
positive or negative <CODE>HUGE_VAL</CODE> (see section <A HREF="library_17.html#SEC290" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_17.html#SEC290">Mathematics</A>), depending on
the sign of the value.  Similarly, if the value is not representable
because of underflow, <CODE>strtod</CODE> returns zero.  It also sets <CODE>errno</CODE>
to <CODE>ERANGE</CODE> if there was overflow or underflow.
<P>
<A NAME="IDX1344"></A>
<U>Function:</U> double <B>atof</B> <I>(const char *<VAR>string</VAR>)</I><P>
This function is similar to the <CODE>strtod</CODE> function, except that it
need not detect overflow and underflow errors.  The <CODE>atof</CODE> function
is provided mostly for compatibility with existing code; using
<CODE>strtod</CODE> is more robust.
<P>
<P>Go to the <A HREF="library_17.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_17.html">previous</A>, <A HREF="library_19.html" tppabs="http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_19.html">next</A> section.<P>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲中文日韩久久av乱码| 一区二区三区**美女毛片| 久久夜色精品国产噜噜av| 在线综合+亚洲+欧美中文字幕| 欧美精品视频www在线观看| 欧美性大战久久| 日韩欧美亚洲一区二区| 久久久五月婷婷| 亚洲欧美综合网| 日韩成人av影视| 国产真实乱子伦精品视频| 高清在线不卡av| 色94色欧美sute亚洲线路二| 欧美一级片在线看| 中文字幕亚洲精品在线观看| 污片在线观看一区二区| 精品一区二区三区影院在线午夜 | 欧美在线观看视频一区二区三区| 91福利视频网站| 久久久久成人黄色影片| 亚洲一区免费视频| 国产成人免费在线观看| 欧美日韩综合一区| 国产女人aaa级久久久级| 亚洲一区二区在线观看视频| 经典三级在线一区| 欧美性大战久久久| 日韩伦理电影网| 韩国av一区二区三区在线观看| 91香蕉视频污| 国产欧美一区二区精品性| 午夜视频一区在线观看| 不卡av在线免费观看| 久久综合九色综合欧美亚洲| 一区二区三区免费网站| 99精品久久免费看蜜臀剧情介绍| 欧美一区二区免费观在线| 亚洲午夜久久久久| 一本大道久久a久久综合| 国产日韩欧美精品电影三级在线| 日本不卡中文字幕| 欧美精品在线观看播放| 性做久久久久久| 欧美日韩一区二区电影| 亚洲国产日韩a在线播放性色| 99麻豆久久久国产精品免费优播| 国产欧美精品一区二区色综合 | 91老师国产黑色丝袜在线| 欧美国产欧美亚州国产日韩mv天天看完整| 麻豆国产一区二区| 久久伊99综合婷婷久久伊| 国产精品一区二区不卡| 国产精品网站在线播放| 99综合电影在线视频| 自拍偷拍国产亚洲| 欧美区一区二区三区| 日韩av中文字幕一区二区| 2017欧美狠狠色| 不卡一区二区三区四区| 一区二区三区91| 日韩欧美一二三四区| 国产精品99久久久久| 亚洲视频免费在线| 91精品国产综合久久蜜臀| 国产伦精品一区二区三区免费| 亚洲国产高清aⅴ视频| 日本精品一级二级| 老司机精品视频线观看86| 中文字幕国产一区二区| 欧美日韩一区二区在线视频| 精品一区二区在线播放| 亚洲欧美日韩在线播放| 日韩亚洲欧美综合| 92精品国产成人观看免费| 免费观看久久久4p| 亚洲欧美福利一区二区| 欧美大片国产精品| 91久久人澡人人添人人爽欧美 | 午夜欧美视频在线观看| 久久精品欧美一区二区三区不卡| 91成人在线精品| 国产精品538一区二区在线| 亚洲国产精品影院| 国产精品国产三级国产aⅴ入口 | 中文字幕一区二区5566日韩| 日韩免费观看高清完整版| 欧美日韩国产另类一区| 蜜臀av在线播放一区二区三区| 日韩视频123| 成人国产亚洲欧美成人综合网| 精品国产a毛片| 日韩欧美激情一区| 韩国v欧美v日本v亚洲v| 亚洲国产成人一区二区三区| 在线成人免费视频| 欧美在线观看一区| 91成人在线精品| 在线免费观看日本欧美| youjizz国产精品| 91在线无精精品入口| 99re成人精品视频| 91小视频免费看| 91久久一区二区| 欧美午夜在线观看| 777欧美精品| 欧美在线制服丝袜| 欧美三级韩国三级日本一级| 色综合中文字幕| 欧美在线一区二区| 8v天堂国产在线一区二区| 日韩一区二区精品| www国产成人免费观看视频 深夜成人网| 欧美精品一区二区三区久久久 | 制服丝袜日韩国产| 日韩一区二区电影| 日本一区二区三级电影在线观看| 中文字幕不卡在线| 亚洲线精品一区二区三区 | 国产伦精品一区二区三区免费| 成人永久aaa| 欧美日韩亚洲高清一区二区| 欧美一级理论片| 国产精品美女一区二区三区| 一区二区三区四区亚洲| 久久精品国产色蜜蜜麻豆| 国产成人午夜视频| 欧美在线观看视频一区二区三区| 日韩欧美123| 亚洲免费av高清| 国产精品 日产精品 欧美精品| 欧美亚洲国产一区二区三区 | 国产高清亚洲一区| 欧美日韩在线亚洲一区蜜芽| 久久综合九色综合欧美98| 亚洲国产日韩av| 成人动漫视频在线| 精品国产精品网麻豆系列| 亚洲一级二级三级| 成人毛片老司机大片| 精品国产髙清在线看国产毛片| 一区二区欧美精品| 96av麻豆蜜桃一区二区| 久久精品欧美日韩| 七七婷婷婷婷精品国产| 欧美色爱综合网| 亚洲色图在线播放| 一本一道久久a久久精品| 国产欧美一区二区精品仙草咪| 激情六月婷婷综合| 欧美成人午夜电影| 久久不见久久见中文字幕免费| 欧美精品电影在线播放| 亚洲精品第一国产综合野| 成人午夜av电影| 最新国产精品久久精品| 97国产精品videossex| 亚洲欧美日本在线| 在线亚洲一区二区| 亚洲国产一区二区三区| 欧美日韩精品免费| 日韩电影免费在线| 久久久91精品国产一区二区三区| 黑人精品欧美一区二区蜜桃| 精品久久久久久久久久久久久久久久久| 日韩av电影免费观看高清完整版| 欧美一区二区黄色| 国产精品一区在线观看乱码 | 国产精品自拍三区| 亚洲国产精华液网站w| 欧美伊人久久大香线蕉综合69| 天天做天天摸天天爽国产一区| 欧美一区二区性放荡片| 精品在线观看免费| 亚洲男人天堂一区| 欧美电影免费观看完整版| 成人av一区二区三区| 亚洲一区二区精品久久av| 欧美tickling网站挠脚心| 成人动漫在线一区| 蜜臀av一区二区在线免费观看| 国产精品日日摸夜夜摸av| 欧美亚洲国产一区二区三区va| 美女网站一区二区| 亚洲精品高清在线观看| 亚洲精品在线网站| 欧美视频一二三区| 波多野结衣中文字幕一区二区三区| 亚洲第一福利视频在线| 国产精品私人自拍| 欧美xxxxxxxxx| 欧美嫩在线观看| 99re这里只有精品6| 久久精品久久精品| 美女一区二区视频| 天天色综合成人网| 久久久一区二区三区捆绑**| 高清不卡一二三区| 亚洲成人av一区二区| 久久久亚洲高清| 不卡电影免费在线播放一区|