/[gnats]/gnats/libiberty/strtol.c
ViewVC logotype

Diff of /gnats/libiberty/strtol.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.4 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 28  Line 28 
28   * SUCH DAMAGE.   * SUCH DAMAGE.
29   */   */
30    
31    /*
32    
33    @deftypefn Supplemental {long int} strtol (const char *@var{string}, char **@var{endptr}, int @var{base})
34    @deftypefnx Supplemental {unsigned long int} strtoul (const char *@var{string}, char **@var{endptr}, int @var{base})
35    
36    The @code{strtol} function converts the string in @var{string} to a
37    long integer value according to the given @var{base}, which must be
38    between 2 and 36 inclusive, or be the special value 0.  If @var{base}
39    is 0, @code{strtol} will look for the prefixes @code{0} and @code{0x}
40    to indicate bases 8 and 16, respectively, else default to base 10.
41    When the base is 16 (either explicitly or implicitly), a prefix of
42    @code{0x} is allowed.  The handling of @var{endptr} is as that of
43    @code{strtod} above.  The @code{strtoul} function is the same, except
44    that the converted value is unsigned.
45    
46    @end deftypefn
47    
48    */
49    
50  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
51  #include "config.h"  #include "config.h"
52  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26