From: Ulrich Drepper Date: Fri, 30 Jan 1998 17:03:38 +0000 (+0000) Subject: (Parsing of Integers): Correct description of strtoul. X-Git-Tag: cvs/before-sparc-2_0_x-branch~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72d936515c4840603a7ae7dc705fbd6cf2fcac1d;p=thirdparty%2Fglibc.git (Parsing of Integers): Correct description of strtoul. --- diff --git a/manual/arith.texi b/manual/arith.texi index 59ddbd626fd..a0f14898d3c 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -506,16 +506,13 @@ There is an example at the end of this section. @deftypefun {unsigned long int} strtoul (const char *@var{string}, char **@var{tailptr}, int @var{base}) The @code{strtoul} (``string-to-unsigned-long'') function is like @code{strtol} except it deals with unsigned numbers, and returns its -value with type @code{unsigned long int}. No @samp{+} or @samp{-} sign -may appear before the number, but the syntax is otherwise the same as +value with type @code{unsigned long int}. If the number has a leading +@samp{-} sign the negated value is returned. The syntax is the same as described above for @code{strtol}. The value returned in case of overflow is @code{ULONG_MAX} (@pxref{Range of Type}). Like @code{strtol} this function sets @code{errno} and returns the value @code{0ul} in case the value for @var{base} is not in the legal range. -For @code{strtoul} this can happen in another situation. In case the -number to be converted is negative @code{strtoul} also sets @code{errno} -to @code{EINVAL} and returns @code{0ul}. @end deftypefun @comment stdlib.h