aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strtol.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-10-16 02:55:31 +0000
committerDJ Delorie <dj@redhat.com>2001-10-16 02:55:31 +0000
commitba19b94f67aeec0722939ce17b4067c8fd05f4cc (patch)
treedb034680b326cb43083236abf9737518d7e1c78a /libiberty/strtol.c
parenta3366758ce10f5bc06f1a128c4eb82cf2a82e455 (diff)
downloadgdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.zip
gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.gz
gdb-ba19b94f67aeec0722939ce17b4067c8fd05f4cc.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/strtol.c')
-rw-r--r--libiberty/strtol.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libiberty/strtol.c b/libiberty/strtol.c
index fa84a2e..d9f54cc 100644
--- a/libiberty/strtol.c
+++ b/libiberty/strtol.c
@@ -31,6 +31,7 @@
/*
@deftypefn Supplemental {long int} strtol (const char *@var{string}, char **@var{endptr}, int @var{base})
+@deftypefnx Supplemental {unsigned long int} strtoul (const char *@var{string}, char **@var{endptr}, int @var{base})
The @code{strtol} function converts the string in @var{string} to a
long integer value according to the given @var{base}, which must be
@@ -39,7 +40,8 @@ is 0, @code{strtol} will look for the prefixes @code{0} and @code{0x}
to indicate bases 8 and 16, respectively, else default to base 10.
When the base is 16 (either explicitly or implicitly), a prefix of
@code{0x} is allowed. The handling of @var{endptr} is as that of
-@code{strtod} above.
+@code{strtod} above. The @code{strtoul} function is the same, except
+that the converted value is unsigned.
@end deftypefn