diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-28 04:04:20 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-28 04:04:20 +0000 |
commit | b8327a91d3d2ffece5d4a18ace01f51e83b92884 (patch) | |
tree | 4c1c90c4e896cf2aa5fbbc2c4272b75986e5b34c /libiberty/functions.texi | |
parent | 0341234fed7578a46bd2393ca32a6492066941b4 (diff) | |
download | gcc-b8327a91d3d2ffece5d4a18ace01f51e83b92884.tar.gz |
* hex.c: Add documentation.
(_hex_value): Provide non-ASCII empty table.
(hex_init): Initialize the non-ASCII table.
* functions.texi: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51496 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r-- | libiberty/functions.texi | 28 |
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}) |