summaryrefslogtreecommitdiff
path: root/libiberty/functions.texi
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-03-28 04:06:38 +0000
committerDJ Delorie <dj@redhat.com>2002-03-28 04:06:38 +0000
commit7dd4d42a604c4a50b7d1b6356b4f33fd6c0695b2 (patch)
tree85b608bdac8f4bf7aeb3424085b2e93623f5d540 /libiberty/functions.texi
parent520f6ade4aea34bb0f76138cdf9141edc7486ce5 (diff)
downloadbinutils-gdb-7dd4d42a604c4a50b7d1b6356b4f33fd6c0695b2.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r--libiberty/functions.texi28
1 files changed, 28 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi
index af7760d89be..b518243d95a 100644
--- a/libiberty/functions.texi
+++ b/libiberty/functions.texi
@@ -317,6 +317,34 @@ between calls to @code{getpwd}.
@end deftypefn
+@c hex.c:25
+@deftypefn Extension void hex_init (void)
+
+Initializes the array mapping the current character set to
+corresponding hex values. This function must be called before any
+call to @code{hex_p} or @code{hex_value}.
+
+@end deftypefn
+
+@c hex.c:33
+@deftypefn Extension int hex_p (int @var{c})
+
+Evaluates to non-zero if the given character is a valid hex character,
+or zero if it is not. Note that the value you pass will be cast to
+@code{unsigned char} within the macro.
+
+@end deftypefn
+
+@c hex.c:41
+@deftypefn Extension int hex_value (int @var{c})
+
+Returns the numeric equivalent of the given character when interpreted
+as a hexidecimal digit. The result is undefined if you pass an
+invalid hex digit. Note that the value you pass will be cast to
+@code{unsigned char} within the macro.
+
+@end deftypefn
+
@c index.c:5
@deftypefn Supplemental char* index (char *@var{s}, int @var{c})